Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Securely Transfer Files Between Systems ====== **General Information** Transferring files with secure copy (scp) and secure file transfer protocol (sftp). SCP and SFTP both use tcp/22 (openssh). ---- ===== SCP ===== SCP copy local file to remote server <code bash> scp myfile user@server1.org:~/storage/ </code> \\ Copy a remote file to a local system <code bash> scp user@server1.org:~/storage/myotherfile mynewlocalfile </code> ---- ===== SFTP ===== SFTP Connect <code bash> sftp user@server1.org </code> \\ View available commands <code bash> sftp> ? </code> * Notice that all commands that operate locally are pre-pended with a "l" \\ Once connected, list and navigate <code bash> sftp> ls sftp> cd mydir </code> \\ Once connected, download file from remote server1 to local system <code bash> sftp> get myfile </code> \\ Once connected, upload file to remote server1 from local system <code bash> sftp> put otherfile </code> \\ Exit SFTP connected session <code bash> exit OR quit </code> ---- linux_wiki/securely_transfer_files_between_systems.txt Last modified: 2019/05/25 23:50(external edit)