下载:apt install leafpad -y 第一步:修改 /etc/ssh/sshd_config leafpad /etc/ssh/sshd_config 去掉# PasswordAuthentication yes: 第二步:去掉#PermitRootLogin,修改为yes 查看SSH服务状态: service ssh start /etc/init.d/ssh status 重启SSH服务 reboot