Access different servers with different subssh users
How a gateway user can login to different servers with different SubSSH users?
To access different servers with distinct subSSH users, it's possible to map various subSSH users with different server groups using the subSSH user map option in the Ezeelogin GUI.
Subssh user means it adds system users on remote servers. Enables you to login as those non-privileged users remotely instead of root.
Follow the steps below to log in to a different server with a different subSSH user.
Step 1. Create a user and assign them to a user group.
In the above screenshot, the user 'Janvi' has been created and assigned to the 'Develop' group.
Step 2. Assign the servers to different server groups
Step 3. Add the SubSSH users.
Here, two sub-SSH users are added: 'Jude' and 'Dany'.
Step 4. Establish a mapping with subSSH users between the user group created earlier and the server groups to which the remote servers belong.
In the above screenshot, subSSH user 'Jude' is mapped to the user group 'Develop' and server group 'gateway1'. SubSSH user 'Dany' is mapped to server group 'gateway2' and user group 'Develop'.
Step 5. Login through backend to check the mapping
root@gateway ~]# ssh user@Ezlogin_ip
In the above screenshot, user 'Janvi' logged into the backend, displaying the groups that are accessible to them.
Select the 'gateway1' server group option and confirm the user details by pressing the 'Tab' key.
Logged in as the Sub SSH user 'Jude' to the 'Remote.ubuntu' server in the 'gateway1' server group.
Select the 'gateway2' server group option, and confirm the user details by pressing the 'Tab' key.
Logged in as the Sub SSH user 'Dany' to the 'Remote.ubuntu' server in the 'gateway2' server group.
A subSSH user (Jude) is mapped to a server group (gateway1) and user group (Develop). This means when a member of the user group (Develop) logs in to any server from the server group (gateway1), they will log in as the subSSH user that we have mapped with them.
Related Articles
Different types of Users in Ezeelogin
How to create sub ssh user through non-root user access