1. 程式人生 > >scp 簡單應用

scp 簡單應用

  # 1、從伺服器下載檔案

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

[email protected]:/remote_path/remote_dir