SSH Public/Private-Key Login Generator 2.0

SSH_Public_Private_Key_Loin_GeneratorThis little script offers the following functionalities:

  • Install new public/private ssh key to log in without username / password
  • Install existing public key on multiple remote server
  • Register private key locally

After installation of your (new) keys you will be able to login to your server without user / password credentials.

Download (or contribute) on gitHub

For security reasons its recommended to disable password login afterwards:

To disable this setting, edit:

vi /etc/ssh/sshd_config

In this file, set the following settings to the following values:

ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no

Afterwards, restart the SSH daemon to apply the settings.

/etc/init.d/sshd restart