I want to automate user creation along with the rsa key generation in a shell script. But while generating the rsa key we need to give inputs for these three things.
- Enter file in which to save the key (/root/.ssh/id_rsa):
- Enter passphrase (empty for no passphrase):
- Enter same passphrase again:
I want to a custom path for the id_rsa file(the first one) and blank for the passphrase.
I tried to achieve this via send command, but it didn't work. Can anyone help me on this?