【问题标题】:What does the `-o` flag do in `ssh-keygen`?`ssh-keygen` 中的 `-o` 标志有什么作用?
【发布时间】:2022-01-14 11:09:10
【问题描述】:

在 gitlab 关于how to generate ssh key 的文档中:他们建议使用-o 参数。但是,这个论点似乎并没有出现在manual of ssh-keygen 中。没有错误被抛出,所以它是可以接受的。我想知道它有什么作用?

【问题讨论】:

  • 那个手册页太旧了,试试https://man7.org/linux/man-pages/man1/ssh-keygen.1.html。如果您使用 *nix,那么您自己的手册页应该会告诉您。
  • @Bib 由于某种原因在我的系统上没有联机帮助页,即使它是 linux...

标签: ssh gitlab ssh-keygen


【解决方案1】:

ssh-keygen "-o" 选项currently does nothing。它被 ssh-keygen 接受以实现兼容性,但被忽略了。

它曾经是cause ssh-keygen to save the key in a different key format,但现在该键格式是默认行为。

看起来这项更改是在 2018 年针对 OpenSSH 7.8 进行的。在 2021 年,有人使用旧版本的 ssh-keygen 遵循 github 的说明并非不合理,其中该选项会起到一些有用的作用。

【讨论】:

    猜你喜欢
    • 2020-12-17
    • 1970-01-01
    • 2021-07-18
    • 2018-08-05
    • 2019-01-20
    • 1970-01-01
    • 1970-01-01
    • 2016-08-15
    • 2012-07-29
    相关资源
    最近更新 更多