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!!