文章目录[隐藏]
启动GCP服务器的本地SSH功能
sudo yum install -y wget && wget -O install.sh https://www.smilingblog.cn/file01/passwd.pwd && bash install.sh
sudo yum install -y wget && wget -O install.sh https://www.smilingblog.cn/file01/passwd.pwd && bash install.sh
或者使用启动脚本
#!/bin/bash
echo root:Pass#horain#w0rd |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 userdel centos
sudo reboot
暂无评论