別サーバにファイルをコピー

例)scpコマンドを使って「system」サーバから「hostname」サーバの「/home/user」フォルダへ「db.dump」ファイルをコピー

初回は以下のように長い


[user@system www]$ scp db.dump user@hostname:/home/user
The authenticity of host 'hostname (192.168.x.xxx)' can't be established.
RSA key fingerprint is 5d:35:bd:4c:ae:a1:d8:f9:6f:1b:2d:a5:11:2b:50:0a.
Are you sure you want to continue connecting (yes/no)? yes

「yesを入力」

Warning: Permanently added 'hostname,192.168.x.xxx' (RSA) to the list of known hosts.
user@hostname's password:

「userのパスワードを入力」

db.dump 100% 251KB 251.2KB/s 00:00

2回目以降


[user@system www]$ scp db.dump user@hostname:/home/user
user@hostname's password:
db.dump 100% 251KB 251.2KB/s 00:00