使用 scp 下載檔案

要將檔案從遠端伺服器下載到本地計算機,請鍵入:

scp tom@server2:$HOME/file.txt /local/machine/path/

此示例顯示如何從使用者 tom 的主目錄下載名為 file.txt 的檔案到本地計算機的當前目錄。