Add a server using ssh key pair in ezeelogin

How to add a server using ssh key pair in Ezeelogin?

1. Create a ssh key pair on the server using the command

 
[email protected]:~# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
/root/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:eUKBEdUlDVzQgCKT3QHBVwHHCH0IjWa8cDdNkRBrvZM [email protected]
The key’s randomart image is:
---[RSA 2048]----
|     =B#B/@%o    |
|    = @ @=B.o    |
|     B = o.      |
|      .o . o     |
|        S E      |
|         o .     |
|                 |
|                 |
|                 |
----[SHA256]-----

 Now, the public key has been saved in the file /root/.ssh/id_rsa.pub and private key in /root.ssh/id_rsa.pub .

 

2. Click on the Servers  and then click on Add server on the right.

 

3) Fill in the server details of the server to be added. Need not add password, instead paste the entire private key generated now in the SSH Private Key field.

Also, provide the exact SSH Key passphrase used at the time of key generating (leave blank if no passphrase was used) .

 Add server using ssh key

 
While adding private key make sure to add the entire key including "BEGIN RSA PRIVATE KEY" and "END RSA PRIVATE KEY". Even a missing "-" could result in corrupted key.
 
3. Paste the public key in remote server users authorized key file.
 

[email protected]:~# vi /root/.ssh/authorized_keys

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCzCOoNRS9t6Eg86XMmnH9V8irlmDQn+G1x+d41aIEwrgllgrfCHe1QwJeTUhME7SnarbjmVLQfYuSVLpb0BtFoqdHQXY/Kp6yuyuJWsRntiPzH5YuVhN0zaITdmnmALTLip9A9hi+pbMy51tDAwJCJPJjvf51VW313ddG9lxmWbzHTHbIQHwV0TPFP8lj2BDDCSL5nw+2QiQ+R36GI8YVpn0aB1RqRMCPyE+lWJOsvfRs+SvUawkbUgTCg9nhEBPb/Xj1INtZnU6A0J2T6mk5tsMb70pEvDWbd6QPpwhOo/3UT5vk5Qt4Q+RBKyheS6jP7lhlpfG9cwtqYRmZ3n74f8qnmwiRCVppiRmSW6YepM0/KoL1byk7RVbaiYWxQZJwdiH/Xfda/nGji6cb0mrsBxKV7QXpF/kstlMQ7zT5HoEGXRYRN4rll+ekCFnpFkCjZ75ss+hOwrmd1iW9luiGdHiV3aQaGTMxWqD48OXXZuoAeC6NVE5LEiqRbOn4W3KPDky4b490UedMhpRdhVXm+Ow3GQJgCPOGqbPP2Huftxn5ZIm3XGfW85J4SsChQ+b3jrxeZF5h/e+nrYWqoTbPxH7DCWVRoI1lu174eBkdUR5oJc4C5v5qTbyzqNE6WK3jsgcazfK32eabCyKfH2AeKAGZM1o4Zn3MozmGFKfNrw

 
4. Try accessing the remote server from ezsh or web ssh.
5 (1)
Article Rating (1 Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    How to copy a file to a remote server or group of servers behind the ssh jumphost? Parallel Copy - How to do it?
    Viewed 1644 times since Thu, Apr 12, 2018
    Webportals unavailable for user
    Viewed 2741 times since Fri, Dec 8, 2017
    How do i configure Ezeelogin to authenticate using OpenLdap(Pam-Ldap) in centos ?
    Viewed 3295 times since Mon, Feb 5, 2018
    How can i add more than one public key to ezeelogin user ?
    Viewed 1479 times since Wed, Oct 18, 2017
    How can i reset the default global key ?
    Viewed 765 times since Fri, Jun 8, 2018
    How to install ssl certs in jump server(secure connection) ?
    Viewed 1788 times since Mon, Apr 30, 2018
    How to install free SSL with Let’s Encrypt?
    Viewed 1324 times since Wed, Jul 18, 2018
    How to import servers from a file into Ezeelogin ssh gateway?
    Viewed 2419 times since Fri, Sep 1, 2017
    Can we map existing user group in ldap to ezeelogin as ezeelogin user group ?
    Viewed 3388 times since Mon, Sep 25, 2017
    Enable or Disable or force ssl for the web interface
    Viewed 2200 times since Thu, Jun 15, 2017