ssh - `-o` 标志在 `ssh-keygen` 中起什么作用?

标签 ssh gitlab ssh-keygen

在 gitlab 的文档中 how to generate ssh key :他们建议使用 -o 参数。不过,这个说法似乎并没有出现在manual of ssh-keygen中。 。没有抛出任何错误,因此可以接受。我想知道它有什么作用?

最佳答案

ssh-keygen“-o”选项currently does nothing 。为了兼容性,它被 ssh-keygen 接受,但被忽略。

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

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

关于ssh - `-o` 标志在 `ssh-keygen` 中起什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70292969/

相关文章:

git - 致命 : Not a gitflow-enabled repo yet. 请先运行 'git flow init'

bash - 将 ed25519 私钥转换为 RSA 私钥

amazon-web-services - 为什么我无法通过 SSH 连接到我的 EC2 实例?没有权限

ssh - 如何通过SSH执行Mathematica脚本

perl - ssh 问题 - 没有这样的文件或目录

git - Azure DevOps 删除了 sha1 支持

public-key-encryption - 私钥/公钥 ssh-keygen -t rsa

ssh - 如何在后台正确打开 SSH 隧道?

gitlab - 如何用And组合多个GitLab规则?

git - 没有 Gerrit 的 Android repo 工具 `repo update`