|
From: | Windl, Ulrich |
Subject: | Using tramp with public key authentication |
Date: | Thu, 28 Nov 2024 13:04:02 +0000 |
Hi! I just tried to use tramp in Emacs 24.3.1 (I know it’s old) for a host that has public key authentication enabled. However since last use the host’s key has changed (actually it’s new hardware and OS release), so the host key was rejected like this: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@^M @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @^M @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@^M IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!^M Someone could be eavesdropping on you right now (man-in-the-middle attack)!^M It is also possible that a host key has just been changed.^M The fingerprint for the RSA key sent by the remote host is SHA256:YHGw+Zd5hsa72ijNSSWNKzoqlAdwu6F+dr75uU8frUA.^M Please contact your system administrator.^M Add correct host key in /home/windl/.ssh/known_hosts to get rid of this message\ .^M Offending RSA key in /home/windl/.ssh/known_hosts:54^M You can use following command to remove the offending key:^M ssh-keygen -R host -f /home/windl/.ssh/known_hosts^M RSA host key for host has changed and you have requested strict checking.^M Host key verification failed.^M While this was displayed, Emacs said “Tramp: Waiting for prompts from remote shell” (which would never come, of course)… After some time the process had been aborted. My guess is that ssh process exiting without success can be detected and handled. Kind regards, Ulrich |
[Prev in Thread] | Current Thread | [Next in Thread] |