1.编辑配置文件
vim /etc/ssh/sshd_config
2.编辑以下内容
RSAAuthentication no PubkeyAuthentication no PasswordAuthentication yes
3.执行重启ssh
service sshd restart