0

I often ssh into a remote machine. I am currently in a local library and when I try, I get the following message:

ssh: connect to host remote.machine.edu port 22: Connection refused

Is there anything I can do about this on my end or is it just something to do with the settings of the library's network?

I am using Ubuntu 16.04.

1 Answers1

2

Assuming that the machine is not actually down:

The library's network blocks connections to TCP port 22 – its firewall generates a fake TCP RST to make it look as if the connection had been refused.

You might or might not be able to get around this by configuring another port number for the SSH server to listen on, but most likely, the library does the same for all ports except "normal" web browsing.

If that's the case, your only (technological) option is to use SSH over port 443 – either plain SSH (just changing the port or sslh), or SSH inside a TLS tunnel (stunnel/haproxy/etc), or SSH over Websocket, or outright a JavaScript-based web terminal.

grawity
  • 501,077