Linux remote settings using the root account

Set a password for the root account

sudo passwd root

Switch to the root account

su root

Linux root account to allow remote connections

vi /etc/ssh/sshd_config

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

//重启服务
service ssh restart

Guess you like

Origin www.cnblogs.com/zhouyu0-0/p/11997022.html