Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scp doesn't work ...

Status
Not open for further replies.

hendnov

Technical User
Feb 27, 2006
73
AU
Hi guys,

I tried to transfer file using scp, but it doesn't work. But I can do ssh for both server.

the server name is :
syduwlp12 and syduwls12-tmp

file name is : test.ksh

Here's the command I typed :
Code:
scp test.ksh adoc@syduwlp12:/opt/adoc/test.ksh

anything wrong with my code ??
 
Yeah, just more explanation.

before I go to syduwls12-tmp, I have to go to syducmp02 first. Which is different server.

so, what I have to do is :
I have to connect to syducmp02 via VNC server and then in syducmp02 server I have to ssh to syduwls12-tmp and then running the command :
Code:
scp test.ksh adoc@syduwlp12:/opt/adoc/test.ksh

Is that OK ? is there anything that I should know ?

THX GUYS
 
and the result is :

Code:
scp test.ksh adoc@syduwls12:/opt/adoc/test.ksh
ssh: connect to address 10.14.57.140 port 22: Connection timed out
lost connection
 
If the connection is timing out
[ol]
[li]Make sure you can actually see the server - ping <remote server>[/li]
[li]Make sure the ssh daemon is running on the remote server[/li]
[li]Make sure that firewall rules let you through, although if telnet (port 25) is allowed then it is likely that ssh (port 22) is allowed[/li]
[/ol]

Ceci n'est pas un signature
Columb Healy
 

Instead you can try rsync

rsync -avz -e ssh <path-of-source-dir> adoc@syduwlp12:/opt/adoc

--Ranjan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top