Auto Generate SSH Keys with ssh-keygen

By | December 21, 2011

Hi there, here is a small tip that might help you create ssh dsa keys without any human intervention. The following command will create two file, id_dsa and id_dsa.pub in the .ssh directory of the user. You can use the id_dsa.pub key and paste in the “authorized_keys” file in the .ssh directory of the remote server to connect to the machine passwordless.

ssh-keygen -q -t dsa -N ‘ ‘ -f ~/.ssh/id_dsa

 

If you like this article, then please consider sharing it. Sharing really inspires us to do things much better!!

Leave a Reply

Your email address will not be published. Required fields are marked *