如何在 Windows 服务器上找到我的 SSH 公钥?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44135974/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I find my SSH public key on Windows server?
提问by Calum Price
Trying to find my SSH key on a winserver through powershell or CMD.
试图通过 powershell 或 CMD 在 winserver 上找到我的 SSH 密钥。
I don't have the option to install Putty. Basically need all the details on my SSH key, but having no luck what so ever.
我没有安装 Putty 的选项。基本上需要关于我的 SSH 密钥的所有详细信息,但没有运气。
The Linux machines were easier as we had putty installed.
由于我们安装了腻子,Linux 机器更容易。
回答by Sagar Saxena
you can find your id_rsa.pubwhich contains your key. Did you use OpenSSH to generate the key?
The default location for saving the public key is C:\Documents and Settings\username\.ssh\
or C:\Users\username\.ssh
您可以找到包含您的密钥的id_rsa.pub。您是否使用 OpenSSH 生成密钥?保存公钥的默认位置是C:\Documents and Settings\username\.ssh\
或C:\Users\username\.ssh
Default file names can be :
默认文件名可以是:
d_dsa.pub
id_ecdsa.pub
id_ed25519.pub
id_rsa.pub
d_dsa.pub
id_ecdsa.pub
id_ed25519.pub
id_rsa.pub
Or you can just type this in your gitbash :-
或者你可以在你的 gitbash 中输入这个:-
ls -al ~/.ssh
ls -al ~/.ssh
This will list all the files in your ssh directory.
这将列出 ssh 目录中的所有文件。