如何在Windows中访问`/.ssh`目录?

发布于 2025-02-11 07:13:00 字数 374 浏览 0 评论 0原文

我遵循说明在此处在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

遗失的美好 2025-02-18 07:13:00

保存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.

紫罗兰の梦幻 2025-02-18 07:13:00

就我而言,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文