由于腾讯云主机ubuntu系统默认用户名为ubuntu,开启root用户登录如下:
- 修改
root密码
sudo passwd root
Enter new UNIX password: // 输入新密码
Retype new UNIX password: // 重复密码
passwd: password updated successfully // 修改成功
- 修改
sshd_config配置如下
vi /etc/ssh/sshd_config
# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
- 最后重启下
ssh
sudo service ssh restart
511



被折叠的 条评论
为什么被折叠?



