2
$\begingroup$

I had to re-install Raspbian OS and now it has new SSH key. SSH clients usually let ignore this fact and save the new key, but not now. Mathematica gives no way to go if the Host Key was changed. I get an error

SSH received a different Host Key while launching kernel 'Raspberry Pi'. Error code = 124.

when trying to start remote kernel and I have found no any information about where is the Mathematica's SSH client on Windows... I just need to clear known hosts... The easy way is to change Raspberry's IP, but it's far less interesting, moreover not always possible

$\endgroup$
1
  • 1
    $\begingroup$ Feel free to answer your own question, and maybe describe the answer in a little more detail. It will be useful for other people who run into the same problem. $\endgroup$
    – Szabolcs
    Commented Mar 8, 2014 at 18:53

1 Answer 1

1
$\begingroup$

Solution found using ProcMon and is That Simple!

C:\Users\%USERNAME%\.ssh

So if you have the same problem, then just open the file C:\Users\%USERNAME%\.ssh\known_hosts using any notepad and delete the entity with the outdated key. Restart Mathematica and try to connect to the remote ketnel. The new key will be created.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.