I would like to create script, which simply runs ssh-keygen -t rsa. But how to pass to it 3 times enter?
ssh-keygen -t rsa
a version with passphrase is:
$ ssh-keygen -t rsa -b 4096 -C "comment" -P "examplePassphrase" -f "desired pathAndName" -q
Source is http://linux.die.net/man/1/ssh-keygen