參考網址:http://blog.csdn.net/xingzhedai/article/details/52586341
1美侦、從服務器下載文件
scp username@servername:/remote_path/filename ~/local_destination
2卡啰、上傳本地文件到服務器
scp ~/local_path/local_filename username@servername:/remote_path
3决摧、從服務器下載整個目錄
scp -r username@servername:/remote_path/remote_dir/ ~/local_destination
scp user@遠程地址:~/文件目錄 本地目錄
4粘姜、上傳目錄到服務器
scp -r ~/local_dir username@servername:/remote_path/remote_dir