demotomohiro / remocolab

remocolab is a Python module to allow remote access to Google Colaboratory using SSH or TurboVNC.
MIT License
317 stars 230 forks source link

websocket: bad handshake ssh_exchange_identification: Connection closed by remote host #87

Closed 0xPiyush closed 3 years ago

0xPiyush commented 3 years ago
websocket: bad handshake 
ssh_exchange_identification: Connection closed by remote host

Describe the bug On trying to connect to ssh session using argo, it fails with the following issue.

websocket: bad handshake 
ssh_exchange_identification: Connection closed by remote host

To Reproduce It occurs on simply trying to connect to ssh.

Any code that is executed before or after remocolab's setup code.

Expected behavior A clear and concise description of what you expected to happen.

image

Desktop

sasagr commented 3 years ago

same here

rayanfer32 commented 3 years ago

Cloudflare takes 5 mins sometimes to properly establish the connection.

On Wed, Jan 13, 2021 at 6:17 PM sasagr notifications@github.com wrote:

same here

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/demotomohiro/remocolab/issues/87#issuecomment-759426702, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI3MT5VIK35S3TTI73QXE2LSZWI73ANCNFSM4V67H55Q .

demotomohiro commented 3 years ago

Sometimes, doing "factory reset runtime" and try again works. Do you get any reply with ping command like ping your-random-server-address.trycloudflare.com? If you got reply, probably argo tunnel is working and maybe some ssh client settings need to be fixed. If you don't get any reply, maybe argo tunnel take long time to become accessible or cloudflare is not providing their service in your region.

sasagr commented 3 years ago

it seems to be working fine right now. I believe it was something temporary