Downloading Files from Server through SSH

lallous

Weaksauce
Joined
Apr 10, 2006
Messages
108
Hello,

I just installed cygwin on my windows xp(server) system so that I could remotely log on to it through SSH. However, I cant really find the appropriate command which allows me to download files from the server to my pc. I tried commands such as scp but i cant seem to make it work.

Is there any alternative command?

Thanks
 
scp is the right tool
The format is similar to cp, like this: scp [from] [to]
Except if you want to copy from remote through ssh, then use this: username@host:/path/to/file

So lets say you want to copy a file in your home directory (test.sh), your username is foo, the machine hostname is bar:
scp foo@bar:/home/foo/test.sh . (don't forget the "." (period), it means current directory)

You can replace hostname with the ip address of the machine as well.
Hope that helps.
 
Back
Top