SFTP and SCP are both protocols for transferring files securely between Linux hosts using SSH.
Copy filename.txt from your local system to the directory named documents on bamdev1:
> scp filename.txt user@bamdev1:documents/
Recursively copy a remote directory named backup to the current directory on your local system:
> scp -r user@bamdev2:backup/ .
To establish an SFTP connection, use the following syntax:
>sftp user@remote-host
sftp> help # list of available commands
sftp> get filename # download file
sftp> put filename # upload file
sftp> ls # list remote directory
sftp> lls # list current working local directory
sftp> mkdir # create remote directory
There are several graphical clients that can be used for SSH file transfer that are available on different platforms. Filezilla is popular solution and is supported on all platforms.
Robert Petkus, 8/1/23