We explain below what you have to do to be able to work efficiently from your home, for instance how to setup a secure network connection to the ETH Zurich using VPN (eg. to access ETHIS, electronic resources like journals, file shares, …), how to access your e-mails, your files and a virtual linux desktop.
We are using a solution based on ThinLinc from Cendio to easily connect to a remote Linux desktop inside the D-MATH network from anywhere. If you are connecting via Wi-Fi/wireless or from outside you will need a VPN connection to the ETH.
If you are using the D-MATH VPN configuration (ex. “math-guest”), you are already in the D-MATH network and can reach all important hosts directly (ex.: ssh host -l <eth-username>).
If you are using the default ETH VPN (i.e. connected with “staff-net” or “student-net”) you can simply access the D-MATH network (ex. our central clients) with SSH via pytharski just by entering the following command in a terminal:
ssh pytharski.math.ethz.ch -l <eth-username>
# or just
ssh pytharski -l <eth-username>
# and if your local username is the same as the ETH one, then
ssh pytharski
2) Open WinSCP and use the following settings under “Basic”, replacing “username” and “password” with your D-MATH details
3) Next we want to save our login details. Under “Stored sessions” click on “save” and enter an appropriate name, e.g. sftpmath. Save with “OK” then click on Login. Next time you use this program just double-click on the stored session name
4) The first time you connect to sftpmath.math.ethz.ch, the security key must be accepted, click Yes here
5) After logging in, your local windows home directory is on the left and your D-MATH home is on the right. To download/upload a file, just double-click it
Mac OS X
1) One of the SFTP-Clients for Mac OS X is called Cyberduck and can be downloaded from cyberduck.io; unzip the file and drag-and-drop Cyberduck into the Applications Folder.
2) Start the application, click on “Open Connection” and enter following information:
Drop-Down Menu: SFTP (SSH File Transfer Protocol)
Server : sftpmath.math.ethz.ch
Username : your username
Password : your password
[x] Add to Keychain (<== up to you)
More Options:
Path : home
[ ] Use Public Key Authentiation (<== up to you)
3) Click on “Connect” and then accept the host key fingerprint by also checking the “Always” checkbox.
Commandline
Follow these steps.
1) Open a terminal (xterm, gnome-terminal, …) and
2) Login
name@shell# sftp username@sftpmath.math.ethz.ch
3) On the first login, you will be asked to accept the sftpmath public server key, this should be accepted with “yes” (more about ssh key fingerprints at: ssh-key-fingerprints):
The authenticity of host 'sftpmath (129.132.119.199)' can't be established.
RSA key fingerprint is SHA256:o8jYLjJZIkG8+V474HcSdUVJTvSjYOYT3qQi8+8kFtE.
Are you sure you want to continue connecting (yes/no)?
then you will be asked for your D-MATH password:
Welcome to the 'sftp'-, 'scp'-, 'rsync'-, 'unison'-, 'svn'- & 'git'-server of
the Mathematics Department of ETH Zurich.
Your directories:
home : your 'home' directory (~)
www : your 'www' directory (~/www)
ftp : your 'ftp' directory (~/ftp)
=> ex.: type "cd home".
username@sftpmath.ethz.ch's password:
After having logged in you can access your home, ftp and www dirctories. To download a file, use the command “get“. To upload a file from the local directory where you logged in from, use the command “put“.
Following other commands can also be used on the sftpmath server:
cp, ls, mv, rm, scp, help, ...
An alternative to logging in interactively to the sftpmath server and using the above-mentioned sftp commands, is using scp. To download a file abc.zzz from the home directory on sftpmath to a local directory: