gcp使用ssh的key登陆时要做的配置

yum install openssh-server

修改ssh配置

#vi /etc/ssh/sshd_config

……

PermitRootLogin no 禁止root用户远程登录

RSAAuthentication yes 密钥加密方式

PubkeyAuthentication yes 使用密钥登录ssh

PasswordAuthentication no 禁止密码方式登录


service sshd restart

原文地址:https://www.cnblogs.com/for-dream/p/12728242.html