Linux

Transferring files with sFTP

You should not use ftp protocol. You already know this. But you are still using it! Stop doing it! At least, use sftp.

How to use it?

1. Connect to host – open a new session:

sftp myhost.com

2. Upload a file:

cd /home/username/myserverdocs
put myfile.xyz

3. Download a file:

get myfile.xyz

4. Download multiple files:

get *.xyz

5. Exit sftp:

exit