SSH 설정

Server

vim /etc/ssh/sshd_config

### vim ###
PubkeyAuthentication yes
### vim ###

systemctl restart sshd

ssh-keygen

Client

ssh-keygen
linux : ssh-copy-id [host]@[Server IP]
Windows : PowerShell -Command type $env:USERPROFILE\\.ssh\\id_rsa.pub | ssh [host]@[Server IP] "cat >> .ssh/authorized_keys"
# id_rsa.pub 이름이 다를 수 있음

ssh [host]@[Server IP]