Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I want to share files between RH 7.2 machine & Win2k machine. I just installed Win SCP on the Win2k machine but really do not know where to go from here.
When I launch Win SCP, it asks for:
1) Hostname:
2) Username:
3) Password:
4) Port: 22
So hostname would be the name or IP address of my RH 7.2 machine? How do I determine what IP that machine has? I tried typing "ping 172.0.0.1" from command prompt & took the IP address it pinged FROM & put that in as my "hostname".
I also am unclear as to where the username/password for Win SCP come from. I tried using "root" & my root password but it would not connect.
I typed ssh -v on my RH 7.2 machine. I have OpenSSH_2.0p2 but do not know if I actually need to start the SSH server first before expecting it to work. I imagine I would need to but can't find good documentation on how to do this.
well surely you gave redhat it's IP in the first place??? if it's network is running ok just run "ifconfig" and it''ll list the details anyway.
the username will of course be a user on teh box, using root is never a good idea, you should use a normal user id, which i presume you normally use on teh linux box anyway.
you will need the ssh server running on the box to connect to it from somewhere else. you do not need it to ssh to somewhere else FROM the linux box.
i apologize, in advance, if my posts seem ignorant. i'm (obviously) new to linux.
well, Win SCP (win2k machine) will not connect using the IP of my RH 7.2 machine.
I'm thinking the reason is b/c I do not have an SSH server running on my linux laptop
(which I need b/c I'm going from Win -> Linux).
When I type "ps aux | grep sshd" from ROOT, I see:
root 1942 0.0 0.4 1728 592 pts/2 S 02:43 0:00 grep sshd
but when I type "top", I do not see any processes listed as sshd.
I tried going the other way around... from Linux -> Win, (since acid_kewpie mentioned I don't need SSH server session started)
This is what happened:
[lfindle@localhost lfindle] $ ssh (IP of my win2k machine)
Secure connection to (IP of my win2k machine) refused.
Not sure what's going on there but I'm thinking that I need to download & install SSH RPM's if I want to connect from Win -> Linux. I guess I can find those by doing a search on RPMFind.net.
[lfindle@localhost lfindle] $ ssh (IP of my win2k machine)
Secure connection to (IP of my win2k machine) refused.
Not sure what's going on there but I'm thinking that I need to download & install SSH RPM's if I want to connect from Win -> Linux. I guess I can find those by doing a search on RPMFind.net.
well no that wouldn't help, that's presumably a problem with the windows server, not linux. maybe a protocol mismatch? your windows server *should* allow you to use either ssh 1 or 2, make sure both are enabled if possible. also check the ssh detail as to how to pick which protocol to use (hint, -1 or -2)
however, when I issue the "top" command, I do NOT see sshd among any of the processes running.
my RH 7.2 machine currently has an IP address of 10.0.0.14 so I tried the following:
[lfindle@localhost /]$ ssh lfindle@10.0.0.14
Secure connection to 10.0.0.14 refused.
I then tried...
[lfindle@localhost /]$ ssh lfindle@localhost
Secure connection to localhost refused.
i tried to telnet from my win98 machine to 10.0.0.14 (IP of RedHat laptop) & get the error "Could not open a connection to 10.0.0.14"
I unfortunately cannot remember whether I told it to allow "ssh" & "http" when I installed RedHat. Judging from it's behavior, I'm guessing I did not check to allow it.
I bought the book "Red Hat Networking & System Administration" today so hopefully I'll find some answers.
when I type "ckconfig --list", I do not see sshd listed anywhere as a service which makes me think that ssh is not installed / running on this machine.
I'm going to download ssh-1.2.30-1us.i386.rpm and
ssh-clients-1.2.30-1us.i386.rpm from ftp.://ftp.zedz.net/pub/crypto/redhat/i386 & see where this takes me.
Worst case scenario... I install RH 7.3 soon & make *sure* I enable ssh from there.
I downloaded/installed the Ximian desktop (www.ximian.org) b/c friends have recommended using RedCarpet to help keep packages up-to-date. The install seemed to go fine but the laptop started having problems (ie- no task bar, new console windows were not opening properly, etc)
So I wound up reinstalling RH 7.2 and made sure I enabled "ssh" this time. So now, Win SCP is working & I can get to my linux box from my windows box. Interesting... when I run the "ps aus | grep sshd" command now.. there are TWO processes running whereas before there was just one process. The two processes running now are: one for (grep sshd) and one for (/usr/sbin/sshd).
Next thing I need to learn though is how to properly back up my HD b/c when I reinstalled RH ... I tarred 2 of my folders up & had to e-mail them to myself b/c couldn't get FTP working ... used a web-based e-mail page to send myself these attachments ... long story short.. this was a very-bad-move. The folders.tar.gz's are gone & I lost lots of programs I'd spent tons of time writing.
Yesterday's Less: Learn how to back up HD properly if I'm going to be messing around w/ my machine like this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.