Ubuntu 使用密钥登录

189 阅读1分钟
ssh-keygen
sudo authorized_keys
sudo vim /etc/ssh/sshd_config
PasswordAuthentication no

sudo systemctl restart ssh