1、從伺服器下載下傳檔案
scp [email protected]:/remote_path/filename ~/local_destination
2、從伺服器下載下傳整個目錄(檔案夾)
scp -r us[email protected]:/remote_path/remote_dir/ ~/local_destination
3、上傳本地檔案到伺服器
scp ~/local_path/local_filename [email protected]:/remote_path
4、上傳目錄(檔案夾)到伺服器
scp -r ~/local_dir [email protected]:/remote_path/remote_dir