How to use SSH

We provide Secure Shell logins to our workstations. Either use

ssh <username>@<hostname>

if you know a specific hostname where you have login rights or use

ssh <username>@login.phys.ethz.ch

for a generic login. You will need your username and password of the Physics account.

In case of a restrictive firewall, for instance in an hotel, you can also connect to login.phys.ethz.ch via SSH on the ports 80 or 443.

Linux and Mac OS X workstations have SSH installed in all current default installations. For Windows we suggest Putty SSH as an SSH client.

Note: the older protocols telnet, rlogin, rsh, rexec, and ftp have serious security issues and we recommend not to use them unless you know exactly what you are doing. On the workstations we support we don't allow incoming connections via these protocols.

Debugging tips

Try to use ssh with the '-vvv' option for verbose output.

If your ssh login to our managed Linux workstations works, but takes several seconds to connect, make sure your files have the correct access permissions:

ssh <username>@login.phys.ethz.ch
chmod g-w ~/
chmod 700 ~/.ssh
chmod 644 ~/.ssh/config
chmod 600 ~/.ssh/authorized_keys*

Explanation: SSH is strict regarding permissions and tries to make sure that only you can access the files. If your home folder gives the group write access, SSH needs to make sure that you are the only member in this group. This lookup of the group members can slow down the initial connection.

Further Reading