设置linux远程使用root账户

为root账户设置密码

sudo passwd root

切换到root账户

su root

允许远程root账户连接linux

vi /etc/ssh/sshd_config

#PermitRootLogin prohibit-password //注释此行
PermitRootLogin yes //加入此行

//重启服务
service ssh restart

猜你喜欢

转载自www.cnblogs.com/zhouyu0-0/p/11997022.html
今日推荐