I would like to create script, which simply runs ssh-keygen -t rsa. But how to pass to it 3 times enter?
I would like to create script, which simply runs ssh-keygen -t rsa . But
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try:
-N ""tells it to use an empty passphrase (the same as two of the enters in an interactive script)-f my.keytells it to store the key intomy.key(change as you see fit).The whole thing runs without you needing to supply any enter keys 🙂
To send enters to an interactive script: