Automate ssh-keygen -t rsa so it does not ask for a passphrase

后端 未结 7 1660
臣服心动
臣服心动 2020-11-30 23:25

I need to automate ssh-keygen -t rsa with out a password i.e. enter at the prompt.
How can I do that from a shell script?

相关标签:
7条回答
  • 2020-11-30 23:59
    $ ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ''
    
    0 讨论(0)
提交回复
热议问题