Globe

Kratos
专注于用户阅读体验的响应式博客主题
  1. 首页
  2. linux
  3. 正文

goole cloud shh登录命令修改

2023年10月10日 55点热度 0人点赞 0条评论

1.先切换root
sudo -i
2.修改SSH配置文件/etc/ssh/sshd_config
vi /etc/ssh/sshd_config
修改PermitRootLogin和PasswordAuthentication为yes

# Authentication:
PermitRootLogin yes //默认为no,需要开启root用户访问改为yes

# Change to no to disable tunnelled clear text passwords
PasswordAuthentication yes //默认为no,改为yes开启密码登陆

3.给root用户设置密码
passwd root

4.重启SSH服务使修改生效
service sshd restart

标签: 暂无
最后更新:2023年10月10日

free

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2024 EverythingIThink. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang