User menu

Menu

Main menu

Using an SSH Gateway in MobaXTerm

This set of instructions walks through making an SSH connection to a host using MobaXTerm's 'jump host' feature. This is helpful when making SSH connections to systems behind firewalls that provide an ssh gateway host, like Lehigh. One potential complication is that credentials for the gateway host may differ from those on the desired destination host. MobaXTerm's interface makes these connections easy.

Note: Since the ssh gateway server is outside the firewall, a VPN connection is _not_ required.
Note Also: MobaXTerm only runs in MS Windows. Macs and Linux users should simply use their native ssh program to make successive connections.

Step Number: 
1
Action: 

On your desktop system (aka 'client machine'), open MobaXTerm, and enter the name of your desired destination host in the 'Find existing session or server name . . .' box.  For example, I want to connect to 'w3.physics.lehigh.edu'

Screenshot: 
enter hostname
Step Number: 
2
Action: 

On entering a hostname and pressing enter, you must choose a protocol. For this, we'll chose 'SSH' by clicking that button in the upper left.

Screenshot: 
select ssh
Step Number: 
3
Action: 

In the 'Basic Settings' box, make sure your destination host is listed in the 'Remote Host' box, and enter your username

Screenshot: 
set destination host and username
Step Number: 
4
Action: 

To specify that we want to use an ssh gateway host, we click on the 'Network settings' tab, and enter the name of the gateway host.  In this example, it's 'ssh.lehigh.edu'.  Note that the username is different from that used for the destination host.

Screenshot: 
specify gateway host name and user name
Step Number: 
5
Action: 

When you click 'OK' at the bottom of the session settings window, MobaXTerm will ask for the password for the user account on the gateway host.

Screenshot: 
enter gateway host password
Step Number: 
6
Action: 

Once connected through the gateway host, the session will require you to enter your password for the destination host.

Screenshot: 
enter destination host password
Step Number: 
7
Action: 

Once connected, your session should show you a prompt. The prompts on systems vary, but in the example, you can see both the username, hostname, and current directory displayed before the '$' prompt on w3.physics.lehigh.

Screenshot: 
session window with prompt

For additional help, please contact the LTS Help Desk at 610-758-4357 or helpdesk@lehigh.edu