Putty 密钥生成器命令行界面?

Jul*_*rre 4 command-line putty openssh

是否可以通过命令行界面使用 Putty Key Generator?我找不到任何文档。

任何指针?

顺便说一句,我只想在 Windows 机器上生成一个 openssh 格式的密钥对。

Pre*_*gha 5

阅读源代码似乎有一个命令行界面

在主要

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];
}
}
Run Code Online (Sandbox Code Playgroud)

你有一个选择

  • -pgpfp

它输出一条消息:

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);
}
Run Code Online (Sandbox Code Playgroud)
  • 稍后用于的密钥文件名

    if (cmdline_keyfile) load_key_file(hwnd, state, filename_from_str(cmdline_keyfile), 0); 返回1;`

我的建议是遵循代码,看看是什么。

  • 我下载了整个源代码 - 它包括 putty gen。 (2认同)