AWS 甲骨文 GCP AZURE等 开启root登陆权限

#!/bin/bash
echo root:VpsBoom |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 reboot

 

甲骨文关闭防火墙

sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -F

 

 

未经允许不得转载:VPSBOOM!!! » AWS 甲骨文 GCP AZURE等 开启root登陆权限

赞 (11)

1 评论

  1. GAted0 SẞδβS

    大佬。请问这个命令任何非root登录机器都可以吗?

    回复