Skip to Content

SSH Connection to a Remote Server Using the Same Username as SSH Gateway User

How to establish an SSH connection to a remote server while maintaining the same username used for logging into the Ezeelogin SSH gateway?


Overview: This article describes how to maintain consistent SSH user authentication between an Ezeelogin SSH gateway and remote servers.


  • Yes, this can be achieved using the pass user through feature.

For eg: SSH gateway user 'Ted' would be logged in as user 'Ted' on the remote server as well.

Note: A user by the same name as the SSH gateway user should exist on the remote servers for the  'Pass user through' feature to work. If you want the remote SSH users to be managed automatically, then use the SSH user feature.

  •  You can enable this option from Users -> ADD/EDIT  -> Pass User Through -> Yes

How to view if the gateway user is mapped as the pass user through?

Step 1. Press the 'Tab' key on the server list to view the mapped details.

Step 2. Press the '+' icon on the left side of the server name to expand and view the mapped details.

  • You can add an SSH private key and passphrase or it will ssh to the remote server with the same password as the Ezeelogin gateway user. 
  • Also, you can copy the SSH Global Public Key and update it on the file /home/{username}/.ssh/authorized_keys file so that you do not have to enter the user's password or add an extra key. 

Related Articles

Different types of users in Ezeelogin.

How to add sub ssh users on remote servers and restrict commands via sudoers file

User prvilege escalation for particular time