前言
撸了一个谷歌云的VPS准备做节点,配置用的自带的SSH,本来不想折腾,但是自带的连接工具是在是太不好用了,也可能是我不会用,反正也不想研究,动不动就报错:connection via cloud identity-aware proxy Failed

实在受不了,还是用ssh工具连接吧,下面记录一下如何简单粗暴的开启ssh的密码连接。
第一步 开启root账户
登陆上google cloud的实例之后用自带的ssh连接进入
进入网页版控制台之后切换到root用户并设置密码。
sudo -i

第二步 修改root密码
设置root密码,默认是没有 的
passwd root

第三步 修改SSH的配置文件
修改SSH配置文件,放开root用户登录和密码认证的选项。
vi /etc/ssh/sshd_config
按i进入编辑
找到PermitRootLogin和PasswordAuthentication
# Authentication:
#LoginGraceTime 2m
PermitRootLogin no //默认为no,需要修改为yes
#StrictModes yes
#MaxAuthTries
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication no //默认为no,需要修改为yes
#PermitEmptyPasswords no1


ESC结束编辑,:wq保存修改并退出
第四步 重启SSH服务
修改完配置文件之后需要重启SSH服务才能生效。
service sshd restart
第五步 使用SSH工具连接
使用任何你喜欢的putty、xshell等工具连接吧。