ssh 私钥连接服务器记录

若执行ssh-add /path/to/xxx.pem是出现这个错误:Could not open a connection to your authentication agent,则先执行如下命令即可: ssh-agent bash 然后执行ssh-add xxx.pem 如果出现ssh “permissions are too open” error,则执行chmod命令修改xx.pem文件权限 chmod 400 ~/.ssh/id_rsa 或者 chmod 600 ~/.ssh/id_rsa ...

October 15, 2020 · 1 min · 133 words · eonh1u