谷歌云(GCP)相关

@Wen's  May 21, 2020

使用第三方 ssh 工具登录 GCP

切换到 Root 用户

sudo -i

修改 SSH 配置文件 / etc/ssh/sshd_config

vi /etc/ssh/sshd_config

修改 PermitRootLogin 和 PasswordAuthentication 为 yes

给 root 用户设置密码

passwd root

重启 SSH 服务使修改生效 (直接 reboot 重启也可)

/etc/init.d/ssh restart



添加新评论