谷歌云 一键root登录有没有

[复制链接]
查看: 5280   回复: 8
发表于 2024-4-14 04:50:41 | 显示全部楼层 |阅读模式
和aws一样输入命令就能root登录的

多谢大佬
回复

使用道具 举报

发表于 2024-4-14 04:51:12 | 显示全部楼层
我有,不告诉你,不喜欢伸手党。
回复 支持 反对

使用道具 举报

发表于 2024-4-14 04:51:37 | 显示全部楼层
好吧 我搜一下
回复 支持 反对

使用道具 举报

发表于 2024-4-14 04:52:29 | 显示全部楼层
找到了 分享一下

设置root密码
2.切换到root账号
sudo -i
3.设置root密码
passwd
开启SSH权限
CentOS和Debian通用,输入以下两条命令
sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
Ubuntu系统,输入以下两条命令
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
重启服务器
reboot
回复 支持 反对

使用道具 举报

发表于 2024-4-14 04:52:42 | 显示全部楼层
对,就这个,你真效率。:victory:
回复 支持 反对

使用道具 举报

发表于 2024-4-14 04:52:52 | 显示全部楼层
直接dd
回复 支持 反对

使用道具 举报

发表于 2024-4-14 04:53:23 | 显示全部楼层
123
回复 支持 反对

使用道具 举报

发表于 2024-4-14 04:54:18 | 显示全部楼层
aws 输入命令就能root登录的代码请分享以下
回复 支持 反对

使用道具 举报

发表于 2024-4-14 04:54:29 | 显示全部楼层
echo root:密码 |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
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则