GCP中VM(linux) 设置远程登录
// 先GCP内平台工具登录shell
// 切换root
sudo -i
// 更新密码
passwd
// 允许远程登录
vim /etc/ssh/sshd_config
设置 PermitRootLogin no=>PermitRootLogin yes
设置 PasswordAuthentication no=>PasswordAuthentication yes
//重启
reboot
// 先GCP内平台工具登录shell
// 切换root
sudo -i
// 更新密码
passwd
// 允许远程登录
vim /etc/ssh/sshd_config
设置 PermitRootLogin no=>PermitRootLogin yes
设置 PasswordAuthentication no=>PasswordAuthentication yes
//重启
reboot