Hi,
How can I transfer files from/to a host computer connected using ssh? Thank you.
Printable View
Hi,
How can I transfer files from/to a host computer connected using ssh? Thank you.
The command you are looking for is scp. It functions much like ssh and cp.
Thank you. Here's how I've done it.
% scp user@host:/home/user/file ./download
to download, and to upload
% scp ./upload/file user@host:/home/user/upload
For a more interactive experience, you can use the sftp command (it is a subsystem of SSH). To reduce bandwidth and only copy files that have changed, see the rsync command.