投稿    登录
  《Python3网络爬虫开发实战》赠书活动正在进行中!详情请戳赠书活动!欢迎参与!非常感谢!

腾讯云ubuntu账号更改为root登录的方法

Other 崔庆才 5557浏览 101评论

需求分析

有需求才有动力!

腾讯云有个比较坑的地方,Ubuntu的机子必须要用ubuntu账号来登录,给我的统一管理带来了很大的麻烦。

在这里我想把它的账号名称改成root来统一登录。

步骤

首先用ubuntu账号登录主机。

然后输入

在这里会首先提示你输入ubuntu用户的账号,然后输入新设置的root用户的账号。在这里一共要输入三次,不过建议root密码和ubuntu密码都一样啦。

QQ20161031-1@2x

然后修改 /etc/ssh/sshd_config

把 PermitRootLogin 修改为 yes

QQ20161031-2@2x

wq 保存

接下来你就可以使用 root 登录了

当然你还可以根据下面这篇文章配置免密码登录。

免密码登录

结语

本文章介绍了腾讯云Ubuntu系列主机配置root登录的方法,希望对大家有帮助。

转载请注明:静觅 » 腾讯云ubuntu账号更改为root登录的方法

喜欢 (6)or分享 (0)

我的个人微信公众号,联系我请直接在公众号留言即可~

扫码或搜索:进击的Coder

进击的Coder

微信公众号 扫一扫关注

想结交更多的朋友吗?

来进击的Coder瞧瞧吧

进击的Coder

QQ群号 99350970 立即加入

进击的Coder灌水太多?

这里是纯粹的技术领地

激进的Coder

QQ群号 627725766 立即加入

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请狠狠点击下面的

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(101)个小伙伴在吐槽
  1. we like to honor lots of other world wide web internet sites around the internet, even if they arent linked to us, by linking to them. Below are some webpages worth checking out
    Sexy chat2019-01-16 15:37 (1分钟前)回复
  2. Here is an excellent Blog You might Uncover Intriguing that we Encourage You
    gucci bags2019-01-16 07:14 (8小时前)回复
  3. we like to honor several other net web sites on the internet, even if they arent linked to us, by linking to them. Underneath are some webpages worth checking out
    Tory Burch2019-01-16 06:48 (9小时前)回复
  4. one of our visitors lately recommended the following website
    akon sorry blame it on me2019-01-15 16:01 (24小时前)回复
  5. please take a look at the sites we follow, like this 1, as it represents our picks in the web
  6. We like to honor several other world wide web sites around the net, even if they arent linked to us, by linking to them. Below are some webpages worth checking out.
    Google2019-01-15 10:45 (1天前)回复
  7. The data mentioned in the article are a few of the best offered
    sexy Melody webcam2019-01-15 08:18 (1天前)回复
  8. here are some hyperlinks to web pages that we link to since we consider they may be really worth visiting
    sweet Sofia cam2019-01-15 01:06 (2天前)回复
  9. usually posts some incredibly intriguing stuff like this. If you are new to this site
    sexy Latina duo2019-01-14 20:43 (2天前)回复
  10. check below, are some completely unrelated internet sites to ours, nonetheless, they're most trustworthy sources that we use
    sexy gaming Chat2019-01-14 17:19 (2天前)回复
  11. although web-sites we backlink to beneath are considerably not associated to ours, we really feel they're really really worth a go by, so have a look
    psicologo avezzano2019-01-14 06:22 (2天前)回复
1 5 6 7