仅做个人记录,操作不全
ssh连接
xshell 只需要操作两步:
第一:输入名称和谷歌云服务器外部IP
第二步:
输入用户名和密码,用户名默认是root,密码是通过 passwd root 指令更改的密码,后续会提
Google cloud
1、打开服务器 ssh
2、将本地公钥写入服务器的 authorized_keys 文件中,本地公钥通过ssh-keygen生成,用的 .pub 文件
3、修改 sshd_config 文件中的两条指令
PermitRootLogin no -> PermitRootLogin yes
PasswordAuthentication no -> PasswordAuthentication yes
修改后重启服务
sudo service sshd restart
4、输入passwd root 指令更改密码