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

posted @ 2020-04-18 21:33  那个ノ花开不败的夏天  阅读(588)  评论(0编辑  收藏  举报