Category: SSH

Secure File Transfer (SFTP) to the D-MATH network

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

Instructions for each platform can be found here:


Linux / Mac OS X / Windows

1) Open the application filezilla, if you need to install it you can download it from:

2) With the following information you can connect

  • Host: sftp://sftpmath.math.ethz.ch
  • Username: [your username]
  • Password: [D-MATH password]

3) Click on the button “Quickconnect”
4) You may need to trust the ssh host key of the server to be able to connect


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


Windows

1) One of the SFTP clients for Windows is called WinSCP and can be downloaded here:

2) Open WinSCP and use the following settings under “Basic”, replacing “username” and “password” with your D-MATH details

winscp_1

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

winscp_2

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

winscp_3

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

winscp_4

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)
cyberduck

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:

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

Read more

Posted on ,

SSH key fingerprints of D-MATH hosts

When connecting to a new OpenSSH server for the first time you’ll be prompted to accept its host key – but how do you know if it is valid?

Read more

Posted on ,

PROTECT YOUR BRAINWORK.

Recent Posts

Trending

Categories

Recent Posts