如何在Windows中访问`/.ssh`目录?
我遵循说明在此处在Windows 10中使用OpenSSH并创建了该目录中存储的SSH键:c:\ Users \ Myuser/.ssh/id_rsa
,如我所说的消息。
我如何从Windows CMD
(或File Explorer)找到此目录,以便我可以获取SSH键对?
当我尝试在那里CD时,我会发现目录不存在的错误。
I have followed the instructions here using OpenSSH in Windows 10 and created an ssh key stored in this directory: C:\Users\MyUser/.ssh/id_rsa
,as the message I get says.
How do I actually find this directory from the windows cmd
(or file explorer) so I can get my ssh key pair?
When I try to cd there I get an error that the directory does not exist.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
保存SSH键的默认位置是
c:\ users \ username \ .ssh
。因此,如果打开Windows命令提示符,您应该能够通过使用so:
cd .ssh/
(您需要前向斜线)如果在那里,则应获得一条新行:
c:\ users \ username \ .ssh>
,如果不存在错误消息。
The default location for saving an SSH key is
C:\Users\username\.ssh
.So if you open Windows Command Prompt, you should be able to see if there is a
.ssh/
subdirectory by using the change directory command like so:cd .ssh/
(you need the forward slash)If it's there, you should get a new line:
C:\Users\username\.ssh>
and an error message if it's not there.
就我而言,SSH-Keygen在当前目录内生成了键,而不是进入声称生成它们的路径。我也遵循这些说明,也很困惑。
In my case, ssh-keygen generated the keys inside the current directory, not into the path it claimed to generate them in. I was also following these instructions and was quite confused as well.