Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection doesn't work after workspace restart #427

Open
dimm0 opened this issue Jan 22, 2025 · 0 comments
Open

Connection doesn't work after workspace restart #427

dimm0 opened this issue Jan 22, 2025 · 0 comments

Comments

@dimm0
Copy link

dimm0 commented Jan 22, 2025

Opening VSCode from coder works on the first load. If the workspace restarts, the host ssh key changes, and connection doesn't work anymore with the error:

[13:30:19.033] stderr> debug1: Server host key: ssh-rsa SHA256:Q7o4526ZRT7PXLhauYV2lr6TgfJyD+ll1uk7HlVI03M
[13:30:19.034] stderr> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[13:30:19.034] stderr> @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
[13:30:19.034] stderr> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[13:30:19.034] stderr> IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
[13:30:19.034] stderr> Someone could be eavesdropping on you right now (man-in-the-middle attack)!
[13:30:19.034] stderr> It is also possible that a host key has just been changed.
[13:30:19.034] stderr> The fingerprint for the RSA key sent by the remote host is
[13:30:19.034] stderr> SHA256:Q7o4526ZRT7PXLhauYV2lr6TgfJyD+ll1uk7HlVI03M.
[13:30:19.034] stderr> Please contact your system administrator.

Manually deleting the existing host key from ssh known_hosts fixes this and makes it work again until the next restart.

Latest version of coder and all below.

@coder-labeler coder-labeler bot added customer-reported help wanted Extra attention is needed labels Jan 22, 2025
@matifali matifali removed help wanted Extra attention is needed customer-reported labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants