Main Content Region

SSH from Linux/Mac

Linux and OSX (Mac) are generally distributed with an SSH client included.

  • Open a 'terminal' session.
  • SSH to the relevant hostname
    • Lonsdale : lonsdale.tchpc.tcd.ie
    • Kelvin : kelvin.tchpc.tcd.ie
[myuser@myhost ~]$ ssh -l jblogs lonsdale.tchpc.tcd.ie
jblogs@lonsdale.tchpc.tcd.ie's password: 

  • Enter your password, as prompted. Note that 'jblogs' is a fictional username, you will need to replace it with your own name.

If you need to run graphical apps such as flseyes, fsl... you have to pass -X option to ssh command

[myuser@myhost ~]$ ssh -X -l jblogs lonsdale.tchpc.tcd.ie

OSX (Mac) notes

Running graphical apps on Mac over ssh requires some extra steps for setting up.

Once installed, you can run ssh command passing -X option as mentioned in previous section

  [myuser@myhost ~]$ ssh -X -l jblogs lonsdale.tchpc.tcd.ie

If you get this error after running ssh command

  Unable to access the X Display, is $DISPLAY set properly?

Double check this line is present in /etc/ssh/sshd_config

  XAuthLocation /opt/X11/bin/xauth

If not, you can add it to either

  • /etc/ssh/sshd_config (System wide. You need root access) or
  • $HOME/.ssh/config (Locally in your home folder)

In case you're adding it locally in your home folder, the file should look like this

  Host *
    ForwardX11 yes
    XAuthLocation /opt/X11/bin/xauth

Once this is done, try again to run ssh command as we did before.