Skip to Content

Using custom private and public keys in Ezeelogin

Can a user use custom private and public keys in Ezeelogin?


Overview: This article explains how to use a custom SSH key pair during the Ezeelogin installation by specifying the private key and passphrase options.


Users can add a custom key pair during installation only.  It cannot be changed to a custom key pair after installation.

Step 1: You would need to generate your own 4096-bit RSA Keys using ssh-keygen

root@gateway:~# ssh-keygen -b 4096 -t rsa -P <enter-strong-pass> -f /root/test-pvt-key

     Generating public/private rsa key pair.
       Your identification has been saved in /root/test-pvt-key.
       Your public key has been saved in /root/test-pvt-key.pub .

Step 2: Run the Ezeelogin installation package with the following option.

root@gateway:~# sh ezlogin_7.1.6.bin -- -help

      -sshkey : Specify the path of SSH private key to be used. Default: generates new key
      -sshkeypass : Specify the password (if any) for SSH private key. Default: no password

root@gateway:~# sh ezlogin_7.1.6.bin -- -sshkey /root/test-pvt-key -sshkeypass ads*9s798js0sdf9#$2!sdr@@

Step 3: Complete the installation. The custom public key would be used when new servers are added in and would be visible under Servers -> Global Key

The private key cannot be decrypted. To get the private key, a new global key pair has to be generated.


Related Articles:

Different key based authentication to remote server

SSH Key rotation to remote servers

Add a server using ssh key pair in ezeelogin

Error: Wrong passphrase or corrupted key