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?
ssh-keygen -t rsa
To generate a SSH keypair without being prompted for a passphrase you can do the following:
$ ssh-keygen -f id_rsa -t rsa -N ''
2.1m questions
2.1m answers
60 comments
57.0k users