谷歌云服务器
1、切换到root用户:sudo -i
2、修改SSH配置文件:vi /etc/ssh/sshd_config
3、找到PermitRootLogin和PasswordAuthentication 默认为no修改为yes
4、重启SSH服务:/etc/init.d/ssh restart 【Debian & Ubuntu】
/bin/systemctl restart sshd.service【CentOS】
5、设置root账户密码:passwd root
没有评论:
发表评论