ssh download file from server to local machine code example
Example 1: upload local file to server
#scp [source file] [username]@[destination server]:
scp /path/to/file username@servername/ip:/destination/folder/
Example 2: ssh download file
scp your_username@remotehost.edu:foobar.txt /local/dir
Example 3: download file via ssh with port
scp -P 2222 username@example.com:/backup/file.zip /local/dir