FF505 - Computational Science - MATLAB Section

Setting up a remote connection to the Computer Lab

Machines of the Computer Lab

To log in remotely to the machines of the terminal room you have to gain access to the machine called login.imada.sdu.dk. From there, if you want, you can log into all other machines of the room whose names are imada-##### where ##### is a number. If you just need access to your files, it is enough to log in the login machine. If you need to run heavy computations then you should log into other machines where there is less traffic.

From Linux

From Terminal (command shell):

ssh [username]@login.imada.sdu.dk

using username and passwords of your IMADA account. Then you should be in your home directory.

From there, to log in to another machine it is sufficient:

ssh imada-#####

To copy files from your home directory at imada to your local computer at home, you have to use the command scp that logs you in and copies locally the files requested at once. For example, to copy locally the file ~/FF505/cars.m I write:

scp [username]@login.imada.sdu.dk:FF505/cars.m .

(the final . means copy in the local directory, maintaining the name). You can also copy in the other direction with, for example:

scp cars.m [username]@login.imada.sdu.dk:FF505/

If you want to open windows with graphical interfaces (you should try anyway to avoid that) then you need to log in with this command:

ssh -Y [username]@login.imada.sdu.dk

using username and passwords of your IMADA account. The from the shell:

matlab

(If you append & after matlab then the program is run in background and the shell terminal is free for use.)

However, do not do this from a login machine. Log into another machine, always with the -Y flag.

Note, you can avoid having to first log in in the log in machine by using VPN Install the VPN client and log in to SDU network with your SDU account. Once a VPN connection is established you should be able to log directly into any machine of the computer lab.

From MacOSX

From the terminal (command shell) logging in and copying files locally can be done exactly as described for Linux above.

If you want to open windows (you should try anyway to avoid that) then you need first to install the X Server. Moreover, the VPN client as explained above would be also helpful.

From Windows

(I have not tried myself this. Write to me, Marco, if you do not succeed.)

There are several possibilities. Search "SSH client for Windows" in Google.

Otherwise you can try one of the following:

In MobaXterm:

Launch the program and click on the key Session on the top bar. Choose SSH.

Fill the form typing login.imada.sdu.dk as host using your account for the IMADA terminal room as username. (If you have a VPN connection working, then you can write directly the name of the Computer Lab machine to which you want to connect.)

Once the connection has started, from the terminal type:

ssh [machine]

to log into a machine of the Computer Lab and, as for Linux,

scp [machine]:FF505/cars.m .

to copy files locally. You can also copy in the other direction with, for example:

scp cars.m [machine]:FF505/

To visualize remotely graphical windows:

ssh -Y [machine]

and then:

matlab.

A remote matlab session should start on your computer.

Date: 2016-01-22T08:12+0100

Author: marco

Org version 7.9.3f with Emacs version 24

Validate XHTML 1.0