域迁移后,我根本无法加载公钥。我尝试删除它们,重新创建它们但总是得到与下面相同的错误
PS D:\Personal\OpenSSH-Win32> .\ssh-keygen.exe
Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\raja/.ssh/id_rsa):
C:\Users\raja/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:\Users\raja/.ssh/id_rsa.
fopen C:\\Users\\raja/.ssh/id_rsa.pub failed: Permission denied
PS D:\Personal\OpenSSH-Win32>
我尝试过修复权限
chmod 600 ~/.ssh/id_rsa.*
chmod: cannot access '/c/Users/raja/.ssh/id_rsa.*': No such file or directory
但似乎失败了。请帮忙。
答案 0 :(得分:0)
由于您在Windows中,请尝试指定存储文件的有效路径(使用反斜杠而不是斜杠):
从
改变C:\用户\拉加/的.ssh / id_rsa
到
C:\用户\拉加\的.ssh \ id_rsa