标签:chm prevent authorize public use id_rsa conf server private
RSAAuthentication yes # 启用 RSA 认证,默认为yes
PubkeyAuthentication yes # 启用公钥认证,默认为yes
ssh-keygen -t rsa
cat id_rsa.pub >> .ssh/authorized_keys
/etc/sshd/sshd_config
PasswordAuthentication no
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
ssh public key to login server
标签:chm prevent authorize public use id_rsa conf server private
原文地址:https://www.cnblogs.com/otfsenter/p/9684094.html