genshen / ssh-web-console

Connect to your linux machine via ssh in your browser.
MIT License
330 stars 70 forks source link

SSH Session Lost #21

Open mgmaqp opened 9 months ago

mgmaqp commented 9 months ago

When it Starts! ..all ok 2024/02/12 15:56:45 api serving at endpoint / 2024/02/12 15:56:45 listening on port :2222

When start a new ssh connection: 2024/02/12 16:17:13 Error: error reading webSocket message: failed to get reader: failed to read frame header: EOF 2024/02/12 16:17:13 Info: websocket finished! 2024/02/12 16:17:13 ssh exist from server wait: remote command exited without exit status or exit signal 2024/02/12 16:17:35 Error: error reading webSocket message: failed to get reader: failed to read frame header: EOF 2024/02/12 16:17:35 Info: websocket finished! 2024/02/12 16:17:35 ssh exist from server wait: remote command exited without exit status or exit signal

mgmaqp commented 9 months ago

In other implementation i fixed it allowing listen from 0.0.0.0 but in this case it did not work:

site: appname: ssh-web-console listen_addr: 0.0.0.0:2222 runmode: prod deploy_host: console.hpc.gensh.me

pandel commented 6 months ago

+1 Having the same problem. Any solutions?

Kadalia commented 5 months ago

Hello, +1 Same issue. Any idea ?

Kadalia commented 5 months ago

Hello, websocket issue. Solved by adding : ProxyPass / http://localhost:2222/ upgrade=websocket to httpd conf. https://httpd.apache.org/docs/2.4/fr/mod/mod_proxy.html#wsupgrade Thank you !