!
也想出现在这里? 联系我们
广告位
当前位置:首页>教程分享>服务器教程>Ubuntu系统root用户远程登录

Ubuntu系统root用户远程登录

通过CRT远程登录Ubuntu时遇到报错:

The client has disconnected from the server.  Reason:

 

Unable to authenticate using any of the configured authentication methods.  

 

Ubuntu初始登录只能是普通用户,想用root登录,需普通用户登录,然后切换为root用户,先设置root密码,再更改sshd_config文件

 

ixo@snort:~$ sudo su

Password: 

root@snort:/home/ixo#sudo passwd root

New password: 

Retype new password: 

passwd: password updated successfully

root@snort:/home/ivo# nano /etc/ssh/sshd_config

 

注意:是sshd_config,而不是ssh_config

 

...

#port 22

port 22

#PermitRootLogin prohibit-password

PermitRootLogin yes    # 允许root直接登录

 

保存后重启ssh服务

 

sudo service ssh restart

给TA打赏
共{{data.count}}人
人已打赏
服务器教程

宝塔配置多个redis 宝塔如何配置https

2021-4-17 18:17:16

服务器教程

香港服务器linux下IP命令的使用

2021-4-17 18:17:18

声明 本站上的部份代码及教程来源于互联网,仅供网友学习交流,若您喜欢本文可附上原文链接随意转载。无意侵害您的权益,请发送邮件至 [email protected] 或点击右侧 私信:吉吉国王 反馈,我们将尽快处理。
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索
OneEase