输入命令:
edit /etc/ssh/sshd_config
在最后面加入:
PermitRootLogin yes #允许root登录
PermitEmptyPasswords no #不允许空密码登录
PasswordAuthentication yes # 设置是否使用口令验证。
重新启动sshd:
/etc/rc.d/sshd restart
edit /etc/ssh/sshd_config
在最后面加入:
PermitRootLogin yes #允许root登录
PermitEmptyPasswords no #不允许空密码登录
PasswordAuthentication yes # 设置是否使用口令验证。
重新启动sshd:
/etc/rc.d/sshd restart