LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 07-05-2002, 12:41 PM   #1
lfindle
LQ Newbie
 
Registered: Jul 2002
Location: Atlanta
Distribution: RH 7.2
Posts: 7

Rep: Reputation: 0
Question Help with SCP


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.

Any suggestions, comments, thoughts?

Thanks much!
Laura
lfindle@mindspring.com
 
Old 07-05-2002, 12:46 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 07-05-2002, 12:55 PM   #3
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
ssh is pretty much a standard install on all Linux Distros.
do:
ps aux |grep sshd
 
Old 07-05-2002, 01:45 PM   #4
lfindle
LQ Newbie
 
Registered: Jul 2002
Location: Atlanta
Distribution: RH 7.2
Posts: 7

Original Poster
Rep: Reputation: 0
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.

Am I going in the wrong direction?

Laura
lfindle@mindspring.com
 
Old 07-05-2002, 02:08 PM   #5
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
sshd is rumming, as you saw iit in top.
What error message do you get when you try to connect
from Win?

It could be that the firewall installed by default with RH is
blocking ssh?

On the Linux box try this command:

ssh your_username@localhost
then try:
ssh your_username@linix_ipaddress

And finaly check:
/var/adm/messages

for any connect or ssh related errror.
 
Old 07-05-2002, 02:39 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Quote:
[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)
 
Old 07-05-2002, 02:50 PM   #7
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
Two quick points:

1. Go here and download puty and pscp
(Both work with the lastest version of openssh)
http://www.chiark.greenend.org.uk/~sgtatham/putty/

2. When I installed RH7.2, when it got the the screen about
Firewalls, I had to ckeck the box to tell it to allow ssh and http?
 
Old 07-07-2002, 09:48 PM   #8
lfindle
LQ Newbie
 
Registered: Jul 2002
Location: Atlanta
Distribution: RH 7.2
Posts: 7

Original Poster
Rep: Reputation: 0
when I do "ps aux | grep sshd" , I get the following:

root 12718 0.0 0.4 1728 592 pts/0 S 10:45 0:00 grep sshd

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.
 
Old 07-07-2002, 10:21 PM   #9
lfindle
LQ Newbie
 
Registered: Jul 2002
Location: Atlanta
Distribution: RH 7.2
Posts: 7

Original Poster
Rep: Reputation: 0
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'm lost....
 
Old 07-07-2002, 11:14 PM   #10
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
That only list services that are configured. NOT all the ones
that are available?

Do not, I repeat DO NOT use ssh-1.2.30, It is old teck. and
IF ssh is there then sshd is

Login with your user account su - root
Do ALL of the folowing:
# type sshd
# locate sshd
# whereis sshd
and if these faill:
find /usr -iname sshd

Look in /etc/inti.d for sshd
If not there get you instll CD, find and instll it.
if it is there then do:

User chkcofnig to add the service for run level 0 3
Here is the link for:
http://www.redhat.com/docs/manuals/l...chkconfig.html
 
Old 07-09-2002, 12:46 PM   #11
lfindle
LQ Newbie
 
Registered: Jul 2002
Location: Atlanta
Distribution: RH 7.2
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 07-09-2002, 01:24 PM   #12
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
lfindle ----
Has your SCP issue been resolved?
Please stick to one subject at a time
 
Old 07-09-2002, 01:32 PM   #13
lfindle
LQ Newbie
 
Registered: Jul 2002
Location: Atlanta
Distribution: RH 7.2
Posts: 7

Original Poster
Rep: Reputation: 0
Sorry about that. Yes, the SCP issue has been resolved by way of reinstalling.
 
Old 07-09-2002, 01:56 PM   #14
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
I would suggeston new posting , with subject reflecting this issue.
 
Old 07-09-2002, 02:08 PM   #15
lfindle
LQ Newbie
 
Registered: Jul 2002
Location: Atlanta
Distribution: RH 7.2
Posts: 7

Original Poster
Rep: Reputation: 0
yes, good idea. Thank you for all of your help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
scp stalled Xitron Linux - Networking 3 03-25-2010 04:13 PM
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
SCP how to the_rhino Linux - Newbie 5 02-11-2005 07:50 PM
What is SCP? radam Linux - Software 2 07-20-2004 07:07 PM
Win Scp scottpioso Linux - Software 3 12-05-2003 04:59 PM


All times are GMT -5. The time now is 04:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration