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 ''
1.4m articles
1.4m replys
5 comments
57.0k users