2013年12月25日

使用 SSH 複製檔案

  • 複製檔案到其他系統
    # scp /path/to/local/file username@hostname:/path/to/remote/file
  • 複製其他系統檔案到另一個其他系統
    # scp username@hostname1:/path/to/remote1/file username@hostname2:/path/to/remote2/file
  • 複製其他系統檔案到本機
    # scp username@hostname:/path/to/remote/file /path/to/local/file
  • 會詢問是否要儲存 SSH 金鑰和 SSH 密碼

沒有留言:

張貼留言