Overview

Port forwarding allows you to forward a specific port from a remote server to your local computer. This is useful for working with some applications that present streams of information or communicate over a port, such as VNC or RStudio. Select your operating system below for tailored instructions.

Select your operating system

Windows

Port forwarding on Windows can be accomplished with numerous applications. This section will focus on the MobaXterm application, which was also used in the SSH and FTP guides. Other software options are listed below.

X-Forwarding Clients

Port Forwarding using MobaXterm

  • MobaXterm provides a Linux-like command window, where you can execute the port forwarding command:

Apple OS X

Port forwarding is built into the ssh utility on Apple computers and is implemented with the “-L” option.
localhost $ ssh -L 7070:localhost:5904 username@scc1.bu.edu
For further reading and advanced configurations, consult read the ssh manual page ( man ssh ) or contact us for assistance.

Linux

Port forwarding is built into the ssh utility on Linux operating systems and is implemented with the “-L” option.
localhost $ ssh -L 7070:localhost:5904 username@scc1.bu.edu
For further reading and advanced configurations, consult read the ssh manual page ( man ssh ) or contact us for assistance.