ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub [user]@[host]
연결하려고 하는 서버에 아래
chmod 700 ~/.ssh/
chmod 600 ~/.ssh/authorized_keys