Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
生成 SSH 密钥的 shell 命令是什么,但提供密码作为命令的一部分而不是标准输入来自动执行此操作?
例如(伪代码):
ssh-keygen -f ./id_rsa -t rsa --passphrase=my-secret-here
谢谢。
来自man ssh-keygen:
man ssh-keygen
-N new_passphrase Provides the new passphrase.