Skip to Content

How to add ssh public key for passwordless authentication in ssh

Enabling Passwordless SSH Login Using Public Keys


Overview: This article offers a comprehensive guide on configuring passwordless SSH authentication for users accessing the Ezeelogin backend shell (ezsh). It details the process of adding SSH public keys to the Ezeelogin system, allowing users to log in seamlessly without being prompted for passwords.


SSH Gateway users can set add their SSH public keys for passwordless authentication to login into the ezsh shell ( ezeelogin backend shell).  Press the F2 key in the ezeelogin shell to enter your public keys for SSH authorized keys-based authentication so that the user's password will not be prompted again.

step 1. Log in to the Ezeelogin backend interface (ezsh shell) by entering your password and completing 2FA.

step 2. Press "F2" or "#" to enter the section where you can add SSH public keys.

step 3. Paste the public key of the user into the interface and press Enter to confirm and save it for authentication.

You can also add more than one key in /home/ezeelogin_user/.ssh/authorized_keys .

The public key you are adding to the ezeelogin master node will not be synced/copied to the slave/secondary node. You should need to copy the public key from the master node to the slave node and vice versa.

Also as an alternative way,

step 1. Create an authorized_keys file and paste your public key inside it.
step 2. After transferring the public keys into the authorized_keys file, Follow the below steps;-

root@gateway ~]#  sftp ezeeloginuser@gatewayip

step 3. Enter the password of the Ezeelogin user when prompted.

sftp> cd .ssh/
sftp> put authorized_keys


Related Articles

Different types of SSH authentication keys

Set SSH Key Expiry for the gateway users

Enable/Disable password or key based authentication

How can i add more than one public key to ezeelogin user ?