cancel
Showing results for 
Search instead for 
Did you mean: 
  • 68 Views

error while attempting ssh connection on lab environment rh104

my error 

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 : here is secret data

Please contact your system administrator.

Add correct host key in /home/student/.ssh/known hosts to get rid of this message

Offending ECDSA key in /home/student/.ssh/known_hosts:7

Password authentication is disabled to avoid man-in-the-middle attacks.
Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.

UpdateHostkeys is disabled because the host key is not trusted.

student@servera: Permission denied (gssapi-keyex,gssapi-with-mic,password).
[student@workstation .ssh]$

1 Reply
martindxc
Flight Engineer
Flight Engineer
  • 39 Views

This is because student's /home/student/.ssh/known_hosts has different key stored already. Different to what servera has now. This could be because you may have done something (redeployed servera, regenered ssh keys..) or *maybe something weird happened when lab was deployed.

As student@workstation open /home/student/.ssh/known_hosts  and delete offending line 7 (line after : indicates the line position within the file). Save the file and connect again. Rinse and repeat if alike error occurs again.

If you don't feel like manually editing the file you can also use ssh-keygen -R servera command 

* I had some weird situation in the past where freshly deployed LAB gave me "used disks". 

Join the discussion
You must log in to join this conversation.