SSH security improvements
SSH is the software protocol that you use to connect to Compute Canada clusters. It protects the security of your data by verifying the server’s identity and yours against known identification data, and by encrypting the connection. Because security risks evolve over time, Compute Canada will soon end support for certain SSH options which are no longer deemed secure. You will have to make some changes on your part in order to continue using our clusters. The changes are outlined in the flowchart to the right, and explained in greater detail below.
- 1 SSH changes (Summer 2019)
- 1.1 What is changing?
- 1.2 Updating your client's known host list
- 1.3 Troubleshooting
- 2 SSH host key fingerprints
SSH changes (Summer 2019)
What is changing?
During the summer of 2019, we will make the following SSH security improvements on Compute Canada clusters:
- Disable certain encryption algorithms.
- Disable certain public key types.
- Regenerate the cluster's host keys.
If you do not understand the significance of "encryption algorithms", "public keys", or "host keys", do not be alarmed. Simply follow the steps outlined below. If testing indicates you need to update or change your SSH client, you may find page useful.
Because users do not connect to Arbutus via SSH but through a web interface, the upcoming changes do not concern them.
Updating your client's known host list
The first time you login to a Compute Canada cluster after the changes, you will probably see the following warning message:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ED25519 key sent by the remote host is SHA256:mf1jJ3ndpXhpo0k38xVxjH8Kjtq3o1+ZtTVbeM0xeCk. Please contact your system administrator. Add correct host key in /home/username/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /home/username/.ssh/known_hosts:109 ED25519 host key for graham.computecanada.ca has changed and you have requested strict checking. Host key verification failed. Killed by signal 1.
This warning is displayed because the host keys on the cluster (in this case Graham) were changed, and your SSH client software remembers the old host keys. (It does this to prevent "man-in-the-middle" attacks.) This will happen for your SSH client on each device from which you connect (so you may see it multiple times).
You may also get a warning regarding "DNS spoofing", which is related to the same change.
MobaXterm, PuTTY, or WinSCP
If you are using MobaXterm, PuTTY, or WinSCP as your ssh (or scp) client under Windows, the warning will appear in a pop-up window and will allow you to accept the new host key by clicking "Yes". Only click yes if the fingerprint matches one listed in SSH host key fingerprints at the bottom of this page. If the fingerprint does not match any on the list, do not accept the connection, and contact Technical support with the details.
macOS, Linux, GitBash or Cygwin
If you are using the command line ssh command on macOS, Linux, GitBash or Cygwin, you should tell your system to "forget" the old host key by running one of the following commands:
ssh-keygen -R graham.computecanada.ca ssh-keygen -R cedar.computecanada.ca ssh-keygen -R beluga.computecanada.ca
Afterwards, the next time you ssh to the cluster you'll be asked to confirm the new host keys, e.g.:
$ ssh graham.computecanada.ca The authenticity of host 'graham.computecanada.ca (126.96.36.199)' can't be established. ED25519 key fingerprint is SHA256:mf1jJ3ndpXhpo0k38xVxjH8Kjtq3o1+ZtTVbeM0xeCk. ED25519 key fingerprint is MD5:bc:93:0c:64:f7:e7:cf:d9:db:81:40:be:4d:cd:12:5c. Are you sure you want to continue connecting (yes/no)?
Only type yes if the fingerprint matches one listed in the SSH host key fingerprints at the bottom of this page. If the fingerprint does not match any on the list below, do not accept the connection, and contact Technical support with the details.
Can I test my SSH client before the change?
Yes. We have set up a server that you can use to test how your SSH client software works with the new protocols.
Connect to it at
ssh-test.computecanada.ca using your regular Compute Canada credentials.
If you can connect successfully then your client will be able to connect to our clusters after the SSH changes are made in the summer of 2019;
however you will still need to update the SSH host keys that your client has stored locally.
See the list of SSH host key fingerprints.
My SSH key no longer works
If you're being asked for a password, but were using SSH keys previously on the same system, it's likely because 1024-bit DSA & RSA keys have been disabled.
You need to generate a new stronger key. The process for doing this depends on the operating system you use, either Windows or Linux/macOS. Those instructions also describe how to add your client's new public key to the remote host, so that you can authenticate with the key rather than needing to provide a password.
I can't connect!
If you see one of the following error messages:
Unable to negotiate with 188.8.131.52 port 22: no matching cipher found. Unable to negotiate with 184.108.40.206 port 22: no matching key exchange method found. Unable to negotiate with 220.127.116.11 port 22: no matching mac found.
you need to upgrade your SSH client to one of the compatible clients shown below.
Which clients are compatible with the new configuration?
The list below is not exhaustive, but we have tested the configuration with the following clients. Earlier versions of these clients may or may not work. We recommend that you update your operating system and SSH client to the latest version compatible with your hardware.
- OpenSSH_7.4p1, OpenSSL 1.0.2k-fips (CentOS 7.5, 7.6)
- OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.13, OpenSSL 1.0.1f (Ubuntu 14)
OS X clients
You can determine the exact version of your SSH client on OS X using the command ssh -V.
- OpenSSH 7.4p1, OpenSSL 1.0.2k (Homebrew)
- OpenSSH 7.9p1, LibreSSL 2.7.3 (OS X 10.14.5)
- MobaXterm Personal Edition v11.1
- Termius, 4.3.12
SSH host key fingerprints
- ED25519 (256b)
- RSA (4096b)