"Windl, Ulrich" <u.wi...@ukr.de> writes:
> 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. The error message says that this host key has changed: /home/windl/.ssh/known_hosts:54 As you say the host is a new hardware and a new OS, this is expected. Just remove that key. And the message also says: You can use following command to remove the offending key: ssh-keygen -R host -f /home/windl/.ssh/known_hosts Did you try this ? By the way, it doesn't look like a tramp problem, you should get the same error outside Emacs with ssh in a terminal. Hoping this may help, Bruno > > Kind regards, > Ulrich