Skip to content

Instantly share code, notes, and snippets.

@vaidap

vaidap/ssh.md Secret

Last active October 18, 2022 16:57
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vaidap/41ff0abaa8ab35c771568dd129114f3a to your computer and use it in GitHub Desktop.
Save vaidap/41ff0abaa8ab35c771568dd129114f3a to your computer and use it in GitHub Desktop.
A guide to remotely accessing DICE machines for Informatics students

A guide to remotely accessing DICE machines

Remote access allows you to connect to a DICE machine and access your personal files from your personal computer. The following sections & comments on this file detail the different ways you can achieve this.

SSH

Basic usage

Official resource

ssh s1234567@student.ssh.inf.ed.ac.uk
ssh student.login

Now you are "inside DICE" so to speak. If you run ls, you can see that you can access all the files on your DICE account! You can also run programs and do most things you would do in a DICE terminal. For example, you can launch command-line text editors with nano file.py or vim file.py. For computation-heavy jobs, please use student.compute instead of student.login. Use logout twice to terminate the SSH session (it will time-out after some time either way).

Advanced usage

X-11 forwarding

Append -X to both SSH commands:

ssh s1234567@student.ssh.inf.ed.ac.uk -X
ssh student.login -X

Now, find a file you'd like to open and run gedit <file>. A graphical window will appear and you will be able to edit the file using the text editor of your choice. Note that this might not be a great option if your internet is slow, and keep in mind that only editors and software that you have already installed on DICE (not your local computer) can be launched!

SSHFS

sudo apt-get install sshfs
mkdir DICE
sshfs s1234567@student.ssh.inf.ed.ac.uk: DICE/

You will now have all your DICE files available on your local machine, in the DICE folder. If you'd like to mount a specific folder, use s1234567@student.ssh.inf.ed.ac.uk:my-folder/.

Virtual DICE

Graphical interface! DICE as you know it, from the comfort of your home! Computing help page on Virtual DICE

Misc

You might also want to have a look at iFile, NX and AFS as they might better fit your needs.

@martinosorb
Copy link

Third thing: you don't need to access a specific remote machine to access your Dice directory. You can directly mount the AFS, instructions again on the computing support page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment