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

Stuck on connecting... #36

Open
dinosmm opened this issue Jun 17, 2020 · 4 comments
Open

Stuck on connecting... #36

dinosmm opened this issue Jun 17, 2020 · 4 comments

Comments

@dinosmm
Copy link

dinosmm commented Jun 17, 2020

Hi there,
Thank you for creating this.
I have installed it on a VPS to use for a class project. I can access the login page, but any server I try to connect to, it keeps 'connecting...' forever.
Do I need to open any incoming ports in my firewall, or is there something else I've not done right?
I am not using a websocket as I didn't think it would be necessary, this will be very low traffic.

EDIT: I have just installed wsProxy and it's running, but I still get stucj on 'connecting...'

@stuicey
Copy link
Owner

stuicey commented Jun 17, 2020

Have you looked in the javascript console for any errors?

I'd hazard a guess that you've not changed the wsProxyURL from localhost to the address where wsProxy is hosted: https://github.com/stuicey/SSHy/blob/master/index.html#L9 . Note; this is in relation to your local web browser.

@Relix360
Copy link

Relix360 commented Sep 4, 2020

Hey, im also stuck there

(index):222 WebSocket connection to 'ws://192.168.3.143:5999/' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT startSSHy @ (index):222 onclick @ (index):464 (anonymous) @ (index):55 combinedLibs.comb.js:338 Uncaught TypeError: Cannot read property 'auth' of undefined at m (combinedLibs.comb.js:338) at d.a.fit (combinedLibs.comb.js:338) at termInit ((index):285) at WebSocket.ws.onclose ((index):257) m @ combinedLibs.comb.js:338 a.fit @ combinedLibs.comb.js:338 termInit @ (index):285 ws.onclose @ (index):257

@stuicey
Copy link
Owner

stuicey commented Sep 5, 2020

Is the websocket proxy available from the machine you're connecting from? The connection timing out would suggest theres no route available or its getting dropped by a firewall rule.

@candlerb
Copy link

@dinosmm:

EDIT: I have just installed wsProxy and it's running, but I still get stucj on 'connecting...'

Which version of wsProxy? I found that the one from npm repositories (npm i -g wsproxy) didn't work. Looking at tcpdump, the exchange got as far as

SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3

and then hung. After uninstalling this, and installing the one which is a git submodule of the SSHy repository, it worked. Instructions are here.

I think it would be helpful though if on error conditions, SSHy could display a message and stop the spinner. Otherwise it just looks like it has hung.

Aside: I couldn't get SSHy to work with websockify. SSHy asks for the "base64" websockets protocol, while websockify now only implements the "binary" websockets protocol.

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

4 participants