我的个人学习笔记-赵新朋:新时代农民工

  • 首页
  • 日常备忘
  • 服务器类
  • 我的收藏
  • 未分类
  • 国外VPS
欢迎你来到猪窝!
  1. 首页
  2. 未分类
  3. 正文

甲骨文云服务器root登陆

2021/03/07 1502点热度 1人点赞 0条评论

使用密钥登录系统以后
执行如下命令

sudo -i
passwd
按提示刷入密码,重复输入密码。
接着输入
echo root:hahaha |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo service sshd restart
重启sshd服务
sudo service sshd restart
标签: 暂无
最后更新:2021/03/07

Kratos

保持饥渴的专注,追求最佳的品质

点赞
< 上一篇
下一篇 >
2023年 2月
一 二 三 四 五 六 日
 12345
6789101112
13141516171819
20212223242526
2728  
« 8月    

    COPYRIGHT © 2021 赵新朋:新时代农民工. ALL RIGHTS RESERVED.

    THEME KRATOS MADE BY VTROIS

    陕ICP备15003432号-1