目次
14
手順
コマンド実行後はSSHクライアントの接続待ち状態となるので転送完了まで端末はそのままとし
ます。
2.EC2から欲しいファイルをPCに転送する
PCのSCP/SFTPクライアントソフトウェアにてポートフォワード設定したローカルポートに対し
て接続を行います。
例)scpコマンドの場合
# scp -i nozaki.pem -o IdentitiesOnly=yes -P 10022
[email protected]:/home/ec2-
user/aaa ./
The authenticity of host '[127.0.0.1]:10022 ([127.0.0.1]:10022)' can't be established.
ED25519 key fingerprint is SHA256:G*********
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[127.0.0.1]:10022' (ED25519) to the list of known hosts.
aaa 100% 3517 25.3KB/s 00:00