有人能告诉我 ssh-keygen 的问题吗?我已经创建了目录,ssh-keygen 确认了,但还没有保存密钥
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jason/.ssh/id_rsa): /home/jason/.ssh
/home/jason/.ssh already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Saving key "/home/jason/.ssh" failed: Is a directory
jason@Keklord:~$
答案1
在
Enter file in which to save the key (/home/jason/.ssh/id_rsa): /home/jason/.ssh
/home/jason/.ssh already exists.
你被提示输入文件名. 您输入一个目录名;/home/jason/.ssh
.
不要输入任何内容;括号中的默认值通常就可以了。如果您想将其保存到自定义位置,则该位置必须是文件或不存在的实体。
错误信息Saving key "/home/jason/.ssh" failed: Is a directory
非常清楚。