Link to home
Start Free TrialLog in
Avatar of Carl3003
Carl3003

asked on

copying files btween different servers?

I am using ssh to connect to different servers. I want to copy files from the other servers into my machine. what command i should issue to do that?
Thanks
ASKER CERTIFIED SOLUTION
Avatar of Mysidia
Mysidia
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Carl3003
Carl3003

ASKER

I was able to load files but i could not upload files.

Was this the command to upload to the remote server?
scp filename  username@destination.hostname.com:/path/to/directory/
Yes, that's the syntax to upload a file to a remote ssh server with scp.

The destination directory needs to already exist

The -r option can also be used to download/upload entire directories recursively also

The  man scp  
command should bring up the manual page for the utility, by the way.