SFTP can be used on all platforms, incl. Linux, Windows and Mac to transfer files to / from the D-MATH fileservers.

Filezilla for all platforms

  1. Open the application filezilla, if you need to install it you can download it from:
  1. With the following information you can connect
  • Host: sftp://sftpmath.math.ethz.ch
  • Username: [your username]
  • Password: [D-MATH password]

  1. Click on the button “Quickconnect”
  2. You may need to trust the ssh host key of the server to be able to connect

  1. Once you are connected you can transfer files from the remote site (right side) to your computer (left side)

Windows specific GUI

  1. One of the SFTP clients for Windows is called WinSCP and can be downloaded here:
  1. Open WinSCP and use the following settings under “Basic”, replacing “username” and “password” with your D-MATH details

winscp_1
winscp_1

  1. 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

winscp_2
winscp_2

  1. The first time you connect to sftpmath.math.ethz.ch, the security key must be accepted, click Yes here

winscp_3
winscp_3

  1. 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

winscp_4
winscp_4

macOS specific GUI

  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)

cyberduck
cyberduck

  1. Click on “Connect” and then accept the host key fingerprint by also checking the “Always” checkbox.

Command-line

Follow these steps.

  1. Open a terminal (xterm, gnome-terminal, …) and

  2. Login

username@host$ sftp username@sftpmath.math.ethz.ch
  1. 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 directories. 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 “.

The 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:

name@shell# scp username@sftpmath.math.ethz.ch:/home/abc.zzz .

Don’t forget the “.” at the end of the command which symbolizes the local directory to download to!

To upload a file cba.zzz from the current local directory to the sftpmath home directory:

name@shell# scp cba.zzz username@sftpmath.math.ethz.ch:/home/.