SSH config file

Simple example (local access):

For more convenient access to marble, you can create an ssh config file. A simple config file that would work from within the Melbourne Uni network can be created using a text editor (e.g. nano) and would look like this:

Host momo
    HostName marble.earthsci.unimelb.edu.au
    ForwardX11 yes
    User djmcco

This file should be saved in ~/.ssh/config on your local computer. Then you can use the following shortcut to log into marble:

.~$ssh momo

This can also be used in other programs / applications. For example scp:

scp momo:/path/to/file /my/computer/file

The name you give the alias can be anything you like, ‘momo’ is used as an example.

A more complicated example (remote access):

For remote access (through abyss) you might have the following ~/.ssh/config file:

Host abysstunnel
    HostName abyss.earthsci.unimelb.edu.au
    LocalForward 8022 marble.earthsci.unimelb.edu.au:22
    User djmcco

Host greymen
    HostName localhost
    Port 8022
    ForwardX11 yes
    User djmcco

Note: The port numbers (e.g. 8022) must match for this to work. You can have multiple servers in this file (e.g. vortex and/or cyclone), and if local forward other ports/services too. To use this configuration (externally), start the tunnel:

ssh abysstunnel

Then do what ever you you would otherwise normally do. E.g:

 scp greymen:/path/to/file /my/computer/file

Or use the X2Go session with host as username@localhost