Centos(linux)打开 root 用户远程 ssh模式

迅恒数据中心

改 /etc/ssh/sshd_config
#PermitRootLogin yes
去#号~~~~~~~~~~~

 

允许root登录

vi /etc/ssh/sshd_config

将PermitRootLogin值改yes 并去掉#

允许不输入密码登录

将PermitEmptyPasswords yes前面的#号去掉

重启服务:service sshd restart(/etc/initd.d/sshd restart)

测试:ssh <ipaddress> 或 ssh <hostname> 或 用putty软件

分类:建站知识 百度收录 必应收录