ssh-keygen -t ed25519

cd ~/.ssh
cp id_ed25519.pub authorized_keys
chmod 700 authorized_keys

nano /etc/ssh/sshd_config

PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
ChallengeResponseAuthentication no

标签: none

添加新评论