ubuntu下生成github上的ssh keys,执行:
ssh-keygen
错误提示:Enter same passphrase again: Saving key "/home/ubuntu/.ssh/id_rsa" failed: Permission denied
解决办法:
直接执行:
sudo chown user1:user1 /home/user1/.ssh -R
成功生成。(下图执行:sudo chown ubuntu:ubuntu /home/ubuntu/.ssh -R)