# sftp foo@localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ED25519 key fingerprint is SHA256:jfugvH6XQbC8OBd/NBoBpL05GJVhu4plMtJzBUS2lBs.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
foo@localhost's password:
Connected to foo@localhost.
sftp>
SFTPサーバ動作確認(アップロード)
SFTPサーバへファイルをアップロードします。
sftp> cd upload/
sftp> mput test.txt
Uploading test.txt to /upload/test.txt
test.txt 100% 0 0.0KB/s 00:00
sftp>
sftp> ls
test.txt
sftp> quit
SFTPサーバ動作確認(ダウンロード)
SFTPサーバからファイルをダウンロード「します。
sftp> cd upload/
sftp> get test.txt
Fetching /upload/test.txt to test.txt
sftp> quit
[root@CetOS8]# ls
test.txt
コメント