文章目录
控制台添加密钥

会下载一个pem文件
下载Xshell
新建
通过public key登录
修改密码连接
shell
passwd root
然后输入你想要设置的密码两遍
shell
cd /etc/ssh/
vi sshd_config
将PasswordAuthentication no 修改为 PasswordAuthentication yes
重启服务:
shell
systemctl restart sshd