Difference between revisions of "Host keys for Euler login nodes"

From ScientificComputing
Jump to: navigation, search
(Currently valid keys)
(Currently valid keys)
Line 21: Line 21:
 
Please find below the list of the currently valid host keys
 
Please find below the list of the currently valid host keys
  
256 MD5:2f:c3:be:36:60:86:28:34:d8:4e:cb:27:66:66:25:a4
+
* ED25519 : MD5:2f:c3:be:36:60:86:28:34:d8:4e:cb:27:66:66:25:a4
/etc/ssh/ssh_host_ed25519_key.pub (ED25519)
+
* ED25519 : SHA256:cbQ9er7E8tFacneNGj2ze09bQUapCuUni5JMiF+wH0A
 
+
* RSA : MD5:ab:4b:dd:24:2a:22:eb:5a:74:2a:72:ed:9c:d1:ad:6f
256 SHA256:cbQ9er7E8tFacneNGj2ze09bQUapCuUni5JMiF+wH0A
+
* RSA : SHA256:qdZ/jPc7HODpO2BmCtJxO51jFZVt1t6fjjbtiUAZemI
/etc/ssh/ssh_host_ed25519_key.pub (ED25519)
 
 
 
2048 MD5:ab:4b:dd:24:2a:22:eb:5a:74:2a:72:ed:9c:d1:ad:6f
 
/etc/ssh/ssh_host_rsa_key.pub (RSA)
 
 
 
2048 SHA256:qdZ/jPc7HODpO2BmCtJxO51jFZVt1t6fjjbtiUAZemI
 
/etc/ssh/ssh_host_rsa_key.pub (RSA)
 
  
 
==How to remove the old key and add the new one==
 
==How to remove the old key and add the new one==

Revision as of 08:50, 26 July 2018

Introduction

When we replace the login nodes with new ones, then the host keys will change, therefore upon next login, you will receive a 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 RSA key sent by the remote host is
SHA256:qdZ/jPc7HODpO2BmCtJxO51jFZVt1t6fjjbtiUAZemI.
Please contact your system administrator.
Add correct host key in /path/to/your/home/.ssh/known_hosts to get rid
of this message.
Offending RSA key in /path/to/your/home/.ssh/known_hosts:252
RSA host key for euler.ethz.ch has changed and you have requested strict
checking.
Host key verification failed.

Currently valid keys

Please find below the list of the currently valid host keys

  • ED25519 : MD5:2f:c3:be:36:60:86:28:34:d8:4e:cb:27:66:66:25:a4
  • ED25519 : SHA256:cbQ9er7E8tFacneNGj2ze09bQUapCuUni5JMiF+wH0A
  • RSA : MD5:ab:4b:dd:24:2a:22:eb:5a:74:2a:72:ed:9c:d1:ad:6f
  • RSA : SHA256:qdZ/jPc7HODpO2BmCtJxO51jFZVt1t6fjjbtiUAZemI

How to remove the old key and add the new one

Please remove the old host key with the following command

ssh-keygen -R euler.ethz.ch

In order to add the new key, please run the command

ssh-keyscan euler.ethz.ch >> ~/.ssh/known_hosts

Afterwards you should no longer receive the warning message when you login.