- 运行命令
ssh-keygen -t rsa
- 复制本机
.ssh/id_rsa.pub
到服务器为文件.ssh/authorized_keys
sign_and_send_pubkey: signing failed for RSA “.ssh/id_rsa” from agent: agent refused operation
chmod 700 ~/.ssh;
chmod 600 ~/.ssh/*;
ssh 免密码登录
ssh-keygen -t rsa
.ssh/id_rsa.pub
到服务器为文件.ssh/authorized_keys
sign_and_send_pubkey: signing failed for RSA “.ssh/id_rsa” from agent: agent refused operation
chmod 700 ~/.ssh;
chmod 600 ~/.ssh/*;