#vi /etc/ssh/sshd_config查找“#PermitRootLogin yes”,将前面的“#”去掉,短尾“yes”改为“no”,并保存文件。修改完毕后,重启sshd服务#service sshd restart