是否可以通过命令行界面使用Putty密钥生成器?我找不到任何文档。
有什么提示吗?
顺便说一下,我只想在Windows机器上生成一个openssh格式的密钥对。
是否可以通过命令行界面使用Putty密钥生成器?我找不到任何文档。
有什么提示吗?
顺便说一下,我只想在Windows机器上生成一个openssh格式的密钥对。
if (argc > 0) {
if (!strcmp(argv[0], "-pgpfp")) {
pgp_fingerprints();
exit(1);
} else {
/*
* Assume the first argument to be a private key file, and
* attempt to load it.
*/
cmdline_keyfile = argv[0];
}
}
你有一个选择
这将输出一条消息:
void pgp_fingerprints(void)
{
fputs("These are the fingerprints of the PuTTY PGP Master Keys. They can\n"
"be used to establish a trust path from this executable to another\n"
"one. See the manual for more information.\n"
"(Note: these fingerprints have nothing to do with SSH!)\n"
"\n"
"PuTTY Master Key (RSA), 1024-bit:\n"
" " PGP_RSA_MASTER_KEY_FP "\n"
"PuTTY Master Key (DSA), 1024-bit:\n"
" " PGP_DSA_MASTER_KEY_FP "\n", stdout);
}
一个关键文件名,稍后将用于
if (cmdline_keyfile) load_key_file(hwnd, state, filename_from_str(cmdline_keyfile), 0); return 1;`
我的建议是跟随代码并了解其中的含义。
ssh-keygen
可能是您需要的。虽然需要一些工作,但您可以从 http://code.google.com/p/msysgit/downloads/list 的 mSysGit 安装中提取它并使用它。