CLion Windows WSL Ubuntu 18.04 ssh error, not finding cmake, g++, gdb

已回答

Hi,

I am trying to run CLion with WSL Ubuntu 18.04, but when testing the ssh connection after I run the configuration bash script (ubuntu_setup_env.sh) I get the following error:

bernardoct@DESKTOP-J6145HK ~
$ ssh username@localhost -p2222
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:al5SLfkYpo3RwyzHMeei2Qi7kvYoP6wdCbOssVmmD2Y.
Please contact your system administrator.
Add correct host key in /home/bernardoct/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/bernardoct/.ssh/known_hosts:28
remove with:
ssh-keygen -f "/home/bernardoct/.ssh/known_hosts" -R "[localhost]:2222"
ECDSA host key for [localhost]:2222 has changed and you have requested strict checking.
Host key verification failed.

 

Here is how my CLion looks like, even after restarting the terminal and CLion.

 

What should I do?

Thanks,

Bernardo

0

Hello! Just follow the recommendation from the error message:

update known_hosts file by calling: ssh-keygen -f "/home/bernardoct/.ssh/known_hosts" -R "[localhost]:2222"

 

0
Avatar
Permanently deleted user

Hi Anna! I had tried following the recommendation from the error message but the error persists (sorry I should have mentioned that in my original post). After following the recommendation the CLion settings screen still returns empty credentials and can't found cmake, gcc/g++ and gdb.

What fixed the problem was going into the settings screen and changing my credentials, which for some reason had been reset and I didn't notice. I changed the username, added the root password, changed and port number, and now I'm all set.

Thanks,

Bernardo

0

Thanks for sharing the solution!

0

请先登录再写评论。