SUSE:
修改sshd_config文件,命令为:vi /etc/ssh/sshd_config
将#PasswordAuthentication no的注释去掉,并且将NO修改为YES
将#PermitRootLogin yes的注释去掉
RHEL开启ssh服务
配置文件目录 :/etc/ssh/sshd_config
更改内容:PermitRootLogin yes(no改为yes)
重启ssh服务:systemctl restart sshd
SUSE:
修改sshd_config文件,命令为:vi /etc/ssh/sshd_config
将#PasswordAuthentication no的注释去掉,并且将NO修改为YES
将#PermitRootLogin yes的注释去掉
RHEL开启ssh服务
配置文件目录 :/etc/ssh/sshd_config
更改内容:PermitRootLogin yes(no改为yes)
重启ssh服务:systemctl restart sshd