wiki:PortForwarding

Set up port forwarding from a local device (Mac OS X) to the cluster for use in Komodo Edit / Filezilla

Set up port forwarding

This wiki page describes the steps to create a connection between your local device and the cluster, using port forwarding.

To set up port forwarding, use the following command (using calculon as an example, replace 'umcg-accountname' by your own account name):

ssh -L 2000:calculon.hpc.rug.nl:22 umcg-accountname@calculon.hpc.rug.nl

If you want to automatically set up port-forwarding every time you log on to the cluster, you can make an alias.

  1. Navigate to your local home directory
cd ~
  1. Open your alias file. If you don't have an alias file yet, make one in your home directory:
vi .bash_profile
  1. Enter a (new) line in the alias file that includes the port forwarding (replace 'umcg-accountname' by your own account name):
alias calculon='ssh -L 2000:calculon.hpc.rug.nl:22 umcg-accountname@calculon.hpc.rug.nl'

Check if port forwarding works

First log in to the cluster with the port forwarding set up.

Then open a new terminal window, and run the following command (replace 'umcg-accountname' by your own account name):

ssh umcg-accountname@localhost -p 2000

You should then be able to log in to the cluster.
!N.B. This should not ask you for a password, if it does the key forwarding was not set up successfully.

Host details for Komodo edit / Filezilla

To use the new connection in Komodo Edit 10, go to
Preferences --> Servers

To use the new connection in Filezilla, go to
Site Manager --> New Site

Then use the following settings to directly transfer files to/from the cluster (in Filezilla) and to directly edit scripts (in Komodo Edit):

host: localhost
username: your umcg-account (umcg-accountname)
password: keep this field empty
port: 2000
protocol: SFTP
logon type (only for Filezilla): key file (browse to point to your local key, use the .ppk format)

Last modified 9 months ago Last modified on 2016-11-22T13:39:20+01:00