红联Linux门户
Linux帮助

ubuntu下运行ssh-keygen提示failed: Permission denied的解决

发布时间:2017-02-20 11:06:09来源:linux网站作者:zqunor
ubuntu下生成github上的ssh keys,执行:
ssh-keygen
ubuntu下运行ssh-keygen提示failed: Permission denied的解决
 
错误提示: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)
ubuntu下运行ssh-keygen提示failed: Permission denied的解决
 
本文永久更新地址:http://www.linuxdiyf.com/linux/28557.html