SFTP๋ฅผ ํตํ ํ์ผ ์ ๋ก๋ ์์ . ๊ฐ๋งน์ ์ ID๋ฅผ ์ ๋ ฅ๋ฐ์ ํ, ํ์ ๊ฐ๋งน์ ์ ์กฐํํด์ ํ์ผ์ ์ ๋ก๋ ํฉ๋๋ค. ํ์ผ ์ ๋ก๋ ๊ณผ์ ์์ SFTP๋ฅผ ์ฌ์ฉํฉ๋๋ค. ํ์ผ ์ ๋ก๋๊ฐ ์๋ฃ๋๋ฉด, ์ ๋ก๋๋ ํ์ผ์ ๋ค์ด๋ก๋ ํ ์ ์์ต๋๋ค.
SFTP๋ฅผ ํตํ ํ์ผ ์ ๋ก๋/๋ค์ด๋ก๋๋ ๋ก์ปฌ ํ๊ฒฝ์์ ์งํํฉ๋๋ค.
Mac SFTP ์ค์ ์ ํ๊ธฐ ์ , ๊ฐ์ธ์ ๋ณด ๋ณดํธ ๋ฐ ๋ณด์
์์ ์ ์ฒด ๋์คํฌ ์ ๊ทผ ๊ถํ
์ ํ์ฉํด์ผ ํฉ๋๋ค.
# SFTP ์คํ
$ sudo systemsetup -setremotelogin on
# SFTP ์คํ์ฌ๋ถ ํ์ธ
$ sudo systemsetup -getremotelogin
Remote Login: On
$ sudo launchctl list | grep ssh
- 0 com.openssh.sshd
# ์ ์
$ sftp $(whoami)@localhost
The authenticity of host 'localhost (::1)' can't be established.
ED25519 key fingerprint is SHA256:/XXXXXXXXXXXXAAAAQQQQXXXXQQQQVVVVAAAAVVVVFF.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
Connected to localhost.