1826498 Members
1888 Online
109692 Solutions
New Discussion

Re: problem with scp.

 
SOLVED
Go to solution
praveen..
Super Advisor

problem with scp.

hi friends,
I am facinf one problem.

I need to pull files out of server2 using scp to server1

$ scp server2:~/.profile .

ssh: connect to host server2 port 22: Connection timed out

$

but i can pull files out of server2 using scp to server3 means:
i can use scp between:
server2-server3 & server1-server3 * vice-versa.

but not able to do scp in between server2-server1.

I need to pull files out of server2 using scp to server1.

this is the issue with server2 or server1 ?

what should i do?








3 REPLIES 3
RAC_1
Honored Contributor

Re: problem with scp.

ssh -v server2 does it work. Any messages?
There is no substitute to HARDWORK
usergroup.os.ux-3.4-iro
Occasional Contributor
Solution

Re: problem with scp.

Hi,

is your sshd on server2 running?
if not: start it!
/sbin/init.d/secsh start

if this is not the reason, try to start the scp in verbose Mode with -v

You can also start the sshd on server2 in debug Mode, using the Arg -d on sshd start.

praveen..
Super Advisor

Re: problem with scp.

i used these two commands.

#/sbin/init.d/secsh stop
#/sbin/init.d/secsh start