OHPC-SSH-HOSTKEY-CHANGE-FIX: Difference between revisions
(Created page with "ssh-keygen -R elsa.hpc.tcnj.edu ssh-keygen -R 159.91.50.30 key fingerprint You may get the error below when trying to SSH in from your Apple Mac computer, Windows PC, Linux...") |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
You may get the error below when trying to SSH | You may get the error below when trying to SSH to the new ELSA cluster from your Mac, PC or when using the <code>>_ELSA OpenHPC Cluster Shell Access</code> terminal in Open OnDemand. | ||
<pre> | <pre> | ||
Line 16: | Line 12: | ||
SHA256:Tydfgvr4fQRlh2L/sqHu6gUR80O1DhDLBeL99HKaIQc. | SHA256:Tydfgvr4fQRlh2L/sqHu6gUR80O1DhDLBeL99HKaIQc. | ||
Please contact your system administrator. | Please contact your system administrator. | ||
Add correct host key in | Add correct host key in ~/.ssh/known_hosts to get rid of this message. | ||
Offending ECDSA key in | Offending ECDSA key in ~/.ssh/known_hosts:154 | ||
ECDSA host key for elsa.hpc.tcnj.edu has changed and you have requested strict checking. | ECDSA host key for elsa.hpc.tcnj.edu has changed and you have requested strict checking. | ||
Host key verification failed. | Host key verification failed. | ||
Line 25: | Line 21: | ||
=== Windows === | === Windows === | ||
You will most likely be prompted by your SSH/terminal program to confirm the change in the SSH host key fingerprint. | You will most likely be prompted by your SSH/terminal program to confirm the change in the SSH host key fingerprint. Click the Ok/Confirm/etc. button to accept the new key. | ||
=== Mac === | === Mac === | ||
Open a terminal window (you're probably already using the terminal window).<br> | |||
Type the following before at the terminal prompts. | |||
<pre> | |||
ssh-keygen -R elsa.hpc.tcnj.edu | |||
ssh-keygen -R 159.91.50.30 | |||
</pre> | |||
Retry your SSH command again.<br> | |||
You will probably be asked to accept/confirm the SSH host key fingerprint. Type <code>yes</code> and press the ENTER or RETURN key. This should only happen the first time after running the <code>ssh-keygen</code> commands. | |||
=== Open OnDemand Web Portal === | === Open OnDemand Web Portal === | ||
While | While this error doesn't prevent you from opening an <code>>_ELSA OpenHPC Cluster Shell Access</code> terminal window, you will get the error message each time. To get rid of that message, follow these steps. | ||
Type the following at the Linux command prompt. | |||
<pre> | |||
ssh-keygen -R elsa.hpc.tcnj.edu | |||
ssh-keygen -R 159.91.50.30 | |||
</pre> | |||
Type <code>exit</code> and close the browser tab with the terminal. | |||
Open a new <code>>_ELSA OpenHPC Cluster Shell Access</code> terminal.<br> | |||
You may see a message about adding a new host key. This should only happen the first time after running the <code>ssh-keygen</code> commands. | |||
Latest revision as of 20:28, 24 May 2022
You may get the error below when trying to SSH to the new ELSA cluster from your Mac, PC or when using the >_ELSA OpenHPC Cluster Shell Access
terminal in Open OnDemand.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 ECDSA key sent by the remote host is SHA256:Tydfgvr4fQRlh2L/sqHu6gUR80O1DhDLBeL99HKaIQc. Please contact your system administrator. Add correct host key in ~/.ssh/known_hosts to get rid of this message. Offending ECDSA key in ~/.ssh/known_hosts:154 ECDSA host key for elsa.hpc.tcnj.edu has changed and you have requested strict checking. Host key verification failed.
To resolve the issue and remove the error message, follow the instruction below based on the platform from where you are running the SSH command.
Windows
You will most likely be prompted by your SSH/terminal program to confirm the change in the SSH host key fingerprint. Click the Ok/Confirm/etc. button to accept the new key.
Mac
Open a terminal window (you're probably already using the terminal window).
Type the following before at the terminal prompts.
ssh-keygen -R elsa.hpc.tcnj.edu ssh-keygen -R 159.91.50.30
Retry your SSH command again.
You will probably be asked to accept/confirm the SSH host key fingerprint. Type yes
and press the ENTER or RETURN key. This should only happen the first time after running the ssh-keygen
commands.
Open OnDemand Web Portal
While this error doesn't prevent you from opening an >_ELSA OpenHPC Cluster Shell Access
terminal window, you will get the error message each time. To get rid of that message, follow these steps.
Type the following at the Linux command prompt.
ssh-keygen -R elsa.hpc.tcnj.edu ssh-keygen -R 159.91.50.30
Type exit
and close the browser tab with the terminal.
Open a new >_ELSA OpenHPC Cluster Shell Access
terminal.
You may see a message about adding a new host key. This should only happen the first time after running the ssh-keygen
commands.