As part of a larger script, I’m running ssh-keygen to generate an RSA public key. I’m not planning on using a passphrase or changing the default folder location. However, I still have to deal with the prompts from ssh-keygen for the file name and passphrase. How can I circumvent having to deal with those prompts, either using the options for ssh-keygen or in the script?
As part of a larger script, I’m running ssh-keygen to generate an RSA public
Share
You can pass them as parameters to avoid need for any input: