Author: IT-Supportgruppe D-MATH

New Member of D-MATH

Here below you find useful IT-related information.

Equipment

Password & Security

Connectivity (Network, Wi-Fi & VPN)

E-mail

Data & Backup

Printing

Personal homepage

IT-related Policies

A number of regulations are put forth by ETH to guide the usage of computers and information security in general.

Read more

Posted on

Accessing your files (on the server)

You can access your files that you have on the server via Samba (recommended for administration staff and also for all macOS users) or via SSH (ssh, sftp, rsync, unison, …)

Access via Samba (VPN needed!)

Connect to:

  • smb://shares.math.ethz.ch (macOS & Linux)
  • \\shares.math.ethz.ch (Windows)

and login with your eth-username and your e-mail password.

MacOS

Select the Finder, in the menu Go, click on Connect to server…, enter the address smb://shares.math.ethz.ch, click on Connect and authenticate. Afterwards you will be prompted to select a “volume” like “your-eth-username”, “www” or “share-xyz”.

Linux

Open Files (Nautilus), click on Other Locations, enter the address

  • smb://shares.math.ethz.ch/NAME_OF_THE_SHARE

click on Connect and authenticate.

Windows

Click on the Start button, enter run, enter the address \\shares.math.ethz.ch and authenticate. Afterwards you will be prompted to select a share like “your-eth-username”, “www” or “share-xyz”.

Access via SSH

The official SSH/SFTP server of the D-MATH is sftpmath.math.ethz.ch but with the “home office” setup (in particular using the “math-guest” or the “math-clients” VPN) you can access almost all linux computers of the department, in particular all Central Clients (ex. ion-*, ada-*).

Read more:

More information about accessing your files via SFTP can be found here.

Read more

Posted on

External Cloud Services

Please be careful when using external cloud services (such as Overleaf, Dropbox, DeepL, …) and try to make regular backups on your local device (laptop) or, even better, on the departmental file server.

The usage of some external cloud services has been approved (at least partially) by the CISO and the central IT services.

Here you’ll find more information:
https://ethz.ch/staffnet/en/service/information-security/usage-external-cloud-services.html

Read more

Posted on

New Mailserver – Exchange Online (EXO)

All the accounts of D-MATH members are going to be migrated to the Microsoft cloud in the week of October 21 – 25, 2024.

This means that all the mail accounts will have to be reconfigured, i.e. the old mail account has to be deleted from your mail application and then the new account has to be added. You’ll find links on how to do that below.

The new address for webmail is: https://outlook.office.com

Configuration for Mail Clients

Evolution (Linux)ENDE
ThunderbirdENDE
Apple Mail (macOS)ENDE
Outlook (macOS)ENDE
Mail (iOS, iPadOS)ENDE
Android AppsENDE
AlpineENDE
MuttEN

Spam Filter

The new address for the spam filter (Exchange Online Protection) is: https://security.microsoft.com/quarantine

More information about the spam filter: English or Deutsch

General Information

General Information about the new mailserver: English or Deutsch

Read more

Posted on

Sagemath

Since Fedora 39 sagemath is not included as a package anymore. There are several possibilities you can use sagemath on Fedora, let’s highlight two:

  • Using the offical docker image
  • Installing it with conda

Podman

sagemath commandline

As our installation provides a fully configured rootless podman configuration, you can for example use the following commands to run the sagemath image:

# connect to a central client
ssh ada-X
# start tmux, alternativly you can use screen
tmux
# create a .sage folder
mkdir $HOME/.sage

# run sage with your home mounted to /home/sage/mydata and a mounted .sage
podman run --user 0 -ti -v $HOME/.sage:/home/sage/.sage -v $HOME:/home/sage/mydata sagemath/sagemath:latest

# to detach from the tmux session use the following keystrokes
#CTRL+B then D

To add a additional folder you can put a other -v parameter, for example:

-v /userdata/username:/home/sage/mydata2
sagemath jupyter notebook

When you want to use the sage jupyter notebook, you can do the following:

# connect to a central client
ssh ada-X
# start tmux, alternativly you can use screen
tmux
# create a .sage folder
mkdir $HOME/.sage

# run sage jupyter on port 8888
podman run --user 0 -p 8888:8888 -v $HOME/.sage:/home/sage/.sage -v $HOME:/home/sage/mydata sagemath/sagemath:latest sage-jupyter --allow-root

# to detach from the tmux session use the following keystrokes
#CTRL+B then D

Then open a second terminal on your local machine and open ssh tunnel to the ada:

# port forward from to ada-X
ssh -t username@ada-X -L 8888:localhost:8888

# Open webbrowser using the url with token shown in the output.

Conda

Please follow the official installation instruction:

Read more

Posted on

Room reservation with calendar

By following the few steps below, you can send a request for a room reservation. Your request will then be reviewed and approved or rejected in a reasonable time frame.

The following rooms are currently available:

locationresource namedescription
HG G 19.1hg-g-19.1@math.ethz.chbig seminar room
HG G 19.2hg-g-19.2@math.ethz.chsmall seminar room
HG G 33.3hg-g-33.3@math.ethz.chmeeting room for admin/tech
HG G 43hg-g-43@math.ethz.chHermann-Weyl-Zimmer
HG G 69hg-g-69@math.ethz.chCommon Room
Read more

Posted on

Moodle Development Environment

Develop moodle

The following setup can be used to setup a moodle development environment, with rootless podman:

# D-MATH link podman-compose
ln -s /usr/bin/podman-compose ~/bin/docker-compose

# D-MATH clone moodle-docker repo
git clone https://github.com/moodlehq/moodle-docker.git
cd moodle-docker

# D-MATH set variables
export MOODLE_DOCKER_DB_PORT=15432
export MOODLE_DOCKER_APP_VERSION=18080
export MOODLE_DOCKER_SELENIUM_VNC_PORT=15900
export MOODLE_DOCKER_WEB_PORT=18000

# Change ./moodle to your /path/to/moodle if you already have it checked out
export MOODLE_DOCKER_WWWROOT=./moodle

# D-MATH add custom configuration
cat <<EOF > local.yml
services:
  webserver:
    volumes:
      - "${MOODLE_DOCKER_WWWROOT}/../moodledata:/var/www/moodledata"
  db:
    environment:
      PGDATA: /var/lib/postgresql/data/pgdata
    volumes:
      - "${MOODLE_DOCKER_WWWROOT}/../database:/var/lib/postgresql/data"
EOF

# Choose a db server (Currently supported: pgsql, mariadb, mysql, mssql, oracle)
export MOODLE_DOCKER_DB=pgsql

# D-MATH creating files with group access for moodle code
umask 007

# Get Moodle code, you could select another version branch (skip this if you already got the code)
git clone -b MOODLE_404_STABLE git://git.moodle.org/moodle.git $MOODLE_DOCKER_WWWROOT

# D-MATH add folder for moodle data
mkdir moodledata
mkdir database

# D-MATH setgid for automatic setting group permission
chmod 2770 moodle
chmod 2770 moodledata
chmod 2770 database

# Ensure customized config.php for the Docker containers is in place
cp config.docker-template.php $MOODLE_DOCKER_WWWROOT/config.php

# D-MATH set the permission to 33 inside the container for moodle code
podman unshare chown 33 -R moodle
podman unshare chown 33 -R moodledata
podman unshare chown 999 -R database

# Start up containers, choose docker.io to download the images
bin/moodle-docker-compose up -d

# Shut down and destroy containers
#bin/moodle-docker-compose down

Above we set the webserver port to 18000 so this means you now need connect to http://localhost:18000 in your browser to see the application.

Volume Permissions

If you have added new files from outside the container, you need to re-apply the correct permissions. Let’s say you have added files inside the moodle folder, then you need to run the following command:

# set the permission to 33 
podman unshare chown 33 -R moodle

Visual Studio Code

To prevent the above Volume Permission problem, you can connect your locally installed Visual Studio Code to the running container:

  • Open Visual Studio Code
  • Hit F1
  • Search for Attach to Running Container
  • Choose the webserver container
  • Now open the folder /var/www/html

If you need to run some commands in the container:

  • After being connected to the container
  • Hit Ctrl+`

Read more

Posted on

Microsoft Office & Adobe Acrobat (Windows)

Specifically for Linux users, but also for Mac users, we provide Microsoft Office (Word, Excel, PowerPoint & Outlook) and Adobe Acrobat in a Windows environment. To access the applications and open your files (which you have stored on the server), follow these instructions.

Read more

Posted on

Build Automation with GitLab Pipelines

Do you still recompile and run your program (and ideally your tests) after every change, like developers did 20 years ago? Do your teammates still bother you about your specific setup that, which is needed to compile/run your projects? Well, then we’ve got some news for you!

Read more

Posted on

minikube (Kubernetes Development)

If you want to develop something for kubernetes, you may need to run minikube. This can be done on our linux installations, the following commands should start a working “kubernetes cluster” on your installation:

mkdir ~/bin/

wget https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 -O ~/bin/minikube
chmod 755 ~/bin/minikube

cd ~/bin/
./minikube config set rootless true
./minikube config set driver podman
./minikube config set container-runtime containerd

./minikube start --cni calico

After minikube has started you can check all running pods with the following:

minikube kubectl -- get pods -A

You can also install kubectl and helm in your ~/bin if you like:

cd ~/bin/

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

export HELM_INSTALL_DIR=~/bin; export USE_SUDO=false; curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash

Read more

Posted on

Linux (Evolution) local mail archive

This describes how to create a local folder in which you can move emails, which will still be available in the evolution mail client. So the mails will be removed from the mailserver and saved into a folder, which you have to backup.

Requirements:

  • You already use evolution as your mail client
  • You make backups of your local files and folders

First create a folder in the filesystem, which will hold your mails:

Now open evolution and start adding a new mail account:

This account will be your local archive, so you can give it a meaningfull name, ex. “Local Archive”. As for the email address you can type in a non existing one, i suggest “archive@local”, this names will help to identify it in evolution later:

After hitting “Next” choose “Standard Unix mbox spool directory” as Server type:

For the “Spool Directory” choose the folder you have created above:

On the next page activate the following:

Choose “None” as the “Server Type”:

“Next” it will ask you for the name which will appear in evolution:

Now you have the new account:

You need to create a folder now to put your mails into:

For example you can create a new one each year:

Now you can move mails from your account into this folder, they will be saved on your filesystem, so don’t forget to regulary make a backup.

Read more

Posted on

Archive e-mails

Read here the official documentation about the Mail Archive to also unterstand when and which e-mail will be automatically archived.

Keeping your mailbox small by deleting old e-mails, particularly large or duplicate e-mails will increase the speed of access to it. For this reason and despite the Mail Archive we recommend to do a copy (best on the NAS) of the e-mails before you delete them with your e-mail client. Here below we will explain how to export single e-mails and whole mailboxes; unfortunately the procedure and/or the result are different depending on the e-mail clients used. For this reason we will focus on Outlook for Mac, Mac Mail and Thunderbird. Sadly this isn’t possible with OWA (webmail). Moreover we have a dedicated post for Evolution (e-mail, calendar and address book client for Linux).

Read more

Posted on

Mail Certificate

The following official ETH documentation describes how to order and configure a new mail certificate:

If you use other e-mail clients that aren’t documented, please contact us – for example, below is a step-by-step guide for the Evolution Mail Client for Linux.

Important note for students

We issue e-mail certificates only to D-MATH employees (excluding teaching assistants!), and only to D-MATH students who have a good reason and whose request is supported by a D-MATH professor.

Evolution Mail Client (Linux)

Here is the configuration for the evolution mail client, which many of us use.

After ordering and downloading the mail certificate you can do the following to integrate it in your evolution mail client.

  • Open Evolution and go to Edit -> Preferences
  • Go to “Certificates” and import your certificate
  • You will be asked for the password, that you have received when downloading the certificate
  • Now you have your certificate imported
  • Next you need to link your mail account with the certificate, in the menu go to “Accounts”
  • On the left side choose “Security” and select your imported certificate for the “Secure MIME (S/MIME)” signing and encrypting certificate.

Read more

Posted on

ETH software

Please read the following two articles if you plan to install ETH licensed software on a private device and/or if you plan to use ETH licensed software for private purposes (like writing a cancellation letter for your flat with Microsoft Office ;-):

How to get a license for ETH software

All licenses can be ordere in the IT Shop

Detailed instructions for the “Microsoft Cloud Subscription”

This is for instance needed for Microsoft Office 365 and Teams

See: https://unlimited.ethz.ch/display/itkb/First+steps+with+Microsoft+365
(look for the “step-by-step instruction”)

Detailed instructions for “Adobe Creative Cloud”

  • Login to https://itshop.ethz.ch
  • Click on “Service Catalog” (left navigation)
  • then “Software and Business Applications”
  • then “Software & Licenses”
  • then “Order Software Product”
  • then search for “Adobe Creative Cloud All Apps”
  • Select (x) Adobe Creative Cloud All Apps
  • Click on “Next Step →”
  • PSP element: 22002 (enter) / Approver: (x) Marcionelli Michele or Irene Schlönvogt (depending who is your contact)
  • Click on “Next Step →”
  • Accept license agreement/disclaimer: (x) Yes
  • Click on “✔️ Submit Request”

In the exact same way you may also order the following useful software (and a lot more):

  • DeepL Pro Translator
  • EndNote
  • Maple
  • Mathematica
  • MathType
  • MATLAB
  • Tecplot 360

Read more

Posted on

Syncronize your Files with FreeFileSync

FreeFileSync is a folder comparison and synchronization software that creates and manages backup copies of all your important files. Instead of copying every file every time, FreeFileSync determines the differences between a source and a target folder and transfers only the minimum amount of data needed. FreeFileSync is Open Source software, available for Windows, macOS, and Linux.

Read more

Posted on

Give Permissions to Calendar

If you like to give someone else at the ETHZ access to your calendar, you can do the following:

  1. Login to https://mail.ethz.ch
  2. Right click on the calendar you like to share and hit “Sharing permissions”

3. Search for the person and click on them

4. Send/Save the given permission to make it active

Read more

Posted on

iPad Reset

Bevor ein ausgeliehenes iPad an die ISG zurückgebracht werden kann, muss ein Reset gemacht werden. Anderenfalls haben wir von der ISG keinen Zugriff auf das Gerät und können es nicht weiter verleihen.

Es wird eine Internet Verbindung benötigt um den Reset durchzuführen. Hier der Link, wie dies gemacht wird:


Before bringing back a lent iPad to the ISG, it has to be reset. Otherwise the ISG will not have access and it can’t be lent again.

An internet connection is required to reset the device. Here the link on how to do that:

Read more

Posted on

Zoom Single Sign-On (SSO) authentication

Login to Zoom using SSO (Single Sign-On) by clicking on “Sign In with SSO”. See below:

Sign In with SSO

Afterwards you will have one of the following screen; either provide the “company” URL “ethz.zoom.us” or your e-mail address “username@ethz.ch”:

You will be then redirected to the following ETH page. Login with “username@ethz.ch” and your ETH e-mail password:

After the authentication you will be redirected back to the Zoom app:

Read more

Posted on

Standard IT equipment

We offer the following standard hardware to our staff:

  • Linux desktop computer: e.g. Esprimo Q958 with 8-Core Intel i7
  • Mac desktop computer: e.g. Mac Mini with 6-Core Intel i5 or Apple Silicon
  • Linux laptop computer: e.g. ThinkPad X1 Yoga, ev. ThinkPad X1 Carbon; or a Laptop that is up to 4 years old
  • Mac laptop computer: e.g. MacBook Pro 14″ with Apple Silicon; or a MacBook Pro that is up to 4 years old

Additionally you can get 1 screen (EIZO 24″ or 27″) (upon request 2, if supported by the hardware) and a docking station and some adaptors if you have a laptop.

You can get a desktop computer more or less immediately (1-2 days). New laptops are usually ordered during the Neptun period, ie. 2 times a year (middle of February – middle of March and September). They have a delivery time of 6-10 weeks (or even longer).

If you decide to have a laptop computer and we don’t have one in stock, you can start with a desktop computer and change later or you can use your private laptop computer until the one provided by the department has arrived.

Rules

We have the following rules concerning laptops:

  • PhD students should contact their supervisors about the choice of model and operating system (Fedora Linux or macOS)
  • we only support Fedora Linux and macOS
  • the laptop belongs to ETH (as it is paid by D-MATH)
  • the laptop is managed and installed by ISG D-MATH, but you’re allowed to install additional software (but e.g. not a different operating system)
  • the laptop should be handled with care
  • repairs etc. are handled by ISG D-MATH
  • you can have either a laptop or a desktop; you can have an external screen, keyboard and mouse with the laptop
  • you don’t necessarily get a new laptop, we use old laptops again
  • there is no backup of the data on a laptop unless you make a backup (we can help with that)

Read more

Posted on

Jupyter Notebook

Linux Desktop

To run a jupyter notebook on your linux is simple just run:

jupyter notebook

Euler Cluster

This service is made for developing and debugging your code, not to run your code on the cluster. If you wish to run it, please use the SLURM queue system. Please only request multiple cores if you are planning to run some code that can make use of multiple cores.

For more information go to the following website:

~/.config/euler/jupyterhub

I want to load a cluster module / I want to activate a virtualenv / Jupyterlab is missing some features

This script will be sourced (. ~/.config/euler/jupyterhub/jupyterlabrc) before starting any service.

cat << EOF > ~/.config/euler/jupyterhub/jupyterlabrc
module load stack
module load python_cuda
#module load sage
#jupyter kernelspec install --user $SAGE_EULER_ROOT/share/jupyter/kernels
EOF

Compute Clients (ada-X)

But if you like to run it on our “central clients” (ada-X) you need to do a port forwarding, to have access to the notebook.

There are some requirements:

The following command will start a new jupyter notebook and open a ssh tunnel.

You need to modify the following in the command:

  • HOST="ada-10" with the host you like
  • USERNAME="username" with your username to connect.

The list of hosts you can use is on the following page:

HOST="ada-10"; USERNAME="username"; PORT=$(($RANDOM % 1000 + 8000)); ssh -t $USERNAME@$HOST -L $PORT:localhost:$PORT "screen jupyter notebook --port $PORT --no-browser"

You need to keep the terminal window running otherwise the port forwarding will stop. The notebook however will still be running on the “central client”, you will just loose the connection in to the webinterface.


To be able to connect to it again, it get’s a bit tricky, you need to know on which port you have started the notebook and reopen a port forwarding to it.

This can be done with the following command (you need to modify HOST=, USERNAME= and PORT=):

HOST="ada-10"; USERNAME="username"; PORT=8943; ssh $USERNAME@$HOST -L $PORT:localhost:$PORT

Read more

Posted on

Howto use docker at D-MATH

To use docker at D-MATH is to use podman -> https://podman.io/

With podman you can use all docker commands just write podman instead of docker in the command, all the parameter stay the same.

With podman we are able to provide a possibility that a user without administrative rights can download and run docker images.

Example 1

The following example will run the latest docker image of alpine linux (https://hub.docker.com/_/alpine).

podman run -ti -v $(pwd):/home/test alpine:latest

The parameter

  • -v $(pwd):/home/test

is very helpful, this will add the current folder you are in now, to the container at /home/test. If you have seLinux activated you need to add a Z:

  • -v $(pwd):/home/test:Z

Example 2

The following example shows howto run a more complicated docker image named fenics and transfer files.

First open a terminal and go into the folder which you want to have accessable in the docker image.

mkdir -p ~/Documents/mydata
cd ~/Documents/mydata

Now run the container with the following parameters:

podman run -ti -p 127.0.0.1:8000:8000 -v $(pwd):/home/fenics/shared -w /home/fenics/shared quay.io/fenicsproject/stable:current

This will connect you to the container.

But the docker image of the fenicsproject will log you in a user fenics, this user will not have access to the data in ~/Documents/mydata.

With podman the user root in the container will have access to your files.

So you need to become root inside the container to have access:

sudo su -

Read more

Posted on

Home office for D-MATH members

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.

Read more

Posted on

Color printing

The default printer configuration on all our managed computer is black and duplex. The following OS specific instructions explain how to print color documents and are specific for the new HP Color LaserJet printers (introduced in March 2020).

Read more

Posted on ,

Linux Environment Modules at the D-MATH

With Environment Modules or simply called Modules it is possible to dynamically expand the active user environment and to remove it again without closing the shell.

Read more

Posted on ,

Wi-Fi and VPN configuration

Below you find the recommended configuration for Wi-Fi (WiFi / Wireless / WLAN) and VPN (Virtual Private Network) for members of the D-MATH.

Read more

Posted on ,

Using “screen” to run simulations on a remote host

The suggested way to run your simulations on a remote host (let say for instance on ada-18) is to use screen, which allows you to:

  • use multiple shell windows from a single SSH session
  • keep a shell active even through network disruptions
  • disconnect and re-connect to a shell sessions from multiple locations
  • run a long running process without maintaining an active shell session.

Read more

Posted on ,

How can someone send me big files?

If some collaborator (a non ETH member) needs to send you a big file (up to 1 GB), then you can set up a “file drop” folder using polybox and sent the generated link for the upload to the person.

Read more

Posted on ,

Address Book

Below is a description of how to configure your Thunderbird address book with Active Directory (AD).

Read more

Posted on ,

Tensorflow

On our Linux devices we are providing a Python Tensorflow Module ready to use that is accessible trough a Linux Environment Module. With the command “module” you have the possibility to add Tensorflow in many different versions. By default the newest is chosen. Read more

Posted on , 2 Comments

Access a remote linux desktop with ThinLinc

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.

Read more

Posted on ,

Accessing a shared mailbox or calendar

If several people need to access the same mailbox – for example, for a secretariat, a group organiser or a project – you need a so called shared mailbox. To get one, please contact us.

Read more

Posted on ,

Personal homepage with ETH Layout

One possible way to have a personal homepage at the Department of Mathematics with a corporate design is described below. Read more

Posted on ,

List of Printers at D-MATH

The following color printers and copiers can be accessed from all the ETH computers (incl. using VPN). We strongly recommend to use the “follow me” printer “card-hp“.

Read more

Posted on ,

Mailing-Lists of D-MATH

All mailing-lists are viewable in a convenient way with a dynamic visualisation tool that represents the mail structure with a tree layout.

Read more

Posted on ,

How to Protect a Webpage with a Password

Suppose you want to protect the sub-page “secure” of your homepage with a password; that is you want that the visitors are asked for a username and a password when accessing a webpage: Read more

Posted on ,

Central Clients of D-MATH

Central Clients are powerful computers in the server room, running Fedora. The software available is the same as on the Linux desktops at the D-MATH. We distinguish between two types of Central Clients: Compute Clients and Load Clients.

Read more

Posted on ,

Syncronize your Files with Unison

See also the alternative software FreeFileSync.

Unison is a file-synchronization tool for Linux, Mac and Windows. It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other.

Read more

Posted on ,

SSH Access to D-MATH network from outside

If you are using the D-MATH WiFi or VPN configuration (with “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
Read more

Posted on ,

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 ,

Where to buy computers and peripherals

Please contact us if you want to buy computers and peripherals with ETH funding as special rules apply. Read more

Posted on ,

Request a Gitlab Account for People without an ETH Account

For D-MATH members to collaborate on our Gitlab Server (gitlab.math.ethz.ch) with people who don’t have an ETH account, the host needs to create a guest account via ETHIS: Read more

Posted on ,

OS X problem with 802.1X

When you get following pop-up-window about 802.1X, after you logged in or connected your network cable Read more

Posted on ,

Settings for TeXShop (and other Mac TeX-Editors)

The default TeX Settings for MacTeX should work in all editors as we don’t have a special installation any more. Read more

Posted on ,

PROTECT YOUR BRAINWORK.

An IT Security Initiative
https://itsecurity.ethz.ch

Trending

Categories

Recent Posts