You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seeing the following error when trying to ssh to a container on my self hosted coder server. I’m able to connect to the host via the terminal on the web UI, but coder-ssh fails. ssh conn: ssh: handshake failed: connection has failed
I’ve cleared my ssh config file to retry but that didn’t work. Could I get some pointer on how to debug this? Appreciate any help!
xiangyus/erics-template docker-image-builds Running 1m false - 8h (in 7h59m)
I have tried both coder ssh erics-template and ssh coder.xxxx and both did not work.
I did a bit more debugging afterward, the container itself seems OK. I'm able to connect to it via the web UI's terminal and also can ssh to it from a different Linux machine. However, I just can't ssh to it from my AMD MacBook.
From my MacBook, I can ssh to the server where the coder-server is hosted, but cannot ssh to the coder's container. I have already tried recreating ssh keys + configs and ssh-add -D, but none of that worked for me, unfortunately. Wondering if you have seen something like this?
Here is the ssh log before it errors out:
debug1: Local version string SSH-2.0-OpenSSH_8.6
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
Well, then it sounds like it's something specific to the MacBook or perhaps that MacBook's network. Do you have a VPN running or anything on the server that might selectively block certain IPs? You've covered most of the factors that vary between the non-working laptop and the working Linux box, but there may be a few remaining.
Activity
ketang commentedon Jun 19, 2022
Hi @soEricNG. Can you provide the exact command you're attempting to execute? And what do you see when you run
coder list? Thanks.soEricNG commentedon Jun 20, 2022
@ketang
Here is what I see with
coder ls:I have tried both
coder ssh erics-templateandssh coder.xxxxand both did not work.I did a bit more debugging afterward, the container itself seems OK. I'm able to connect to it via the web UI's terminal and also can ssh to it from a different Linux machine. However, I just can't ssh to it from my AMD MacBook.
From my MacBook, I can ssh to the server where the coder-server is hosted, but cannot ssh to the coder's container. I have already tried recreating ssh keys + configs and
ssh-add -D, but none of that worked for me, unfortunately. Wondering if you have seen something like this?Here is the ssh log before it errors out:
ketang commentedon Jun 20, 2022
Well, then it sounds like it's something specific to the MacBook or perhaps that MacBook's network. Do you have a VPN running or anything on the server that might selectively block certain IPs? You've covered most of the factors that vary between the non-working laptop and the working Linux box, but there may be a few remaining.
kylecarbs commentedon Aug 24, 2022
I'm going to close this for now! Our #2779 issue should track it.