ssh ftp

Does anyone know how to use SSH to download files onto your computer?

Thanks
You can use sftp. should be installed by default with ssh on *nix machines. On windows try psftp, part of the putty package. Fireftp (firefox ftp plugin) supports sftp now aswell i think.
If you're looking for a GUI to use to do it I like WinSCP, and the price is right: http://winscp.net/eng/index.php
closed account (1yR4jE8b)
No love for Filezilla? http://filezilla-project.org/
To copy a file: scp host:<src> <dst>
e.g.
scp kbw@192.168.0.4:/Users/kbw/.bashrc /tmp/

You can copy directories too:
scp -r kbw@192.168.0.4:/Users/kbw /tmp/

I prefer to copy using tar archives as it copies file attributes and preserves hard links:
ssh kbw@192.168.0.4 "cd /Users/; tar -cf - kbw" | (cd /tmp/; tar -xvf -)

What's all that?
ssh onto 192.168.0.4 as kbw and run:
1. cd /Users/
2. create a tar archive of directory kbw to stdout

pipe the output from that ssh command to:
1. cd /tmp/
2. extract a tar archive from stdin
Last edited on
Topic archived. No new replies allowed.