0

The server is current running bitvise SSH (I can readily switch to another solution), it is behind a firewall that blocks incoming connections (I can't open it because of reasons).

I have a computer outside of the network which is contacted periodically.

So I have a connection right?

So how can I start a SSH session utilizing the connection?

DavidPostill
  • 162,382
konzo
  • 203

1 Answers1

1

Assuming I am interpreting your problem correctly:

  • S = server behind firewall
  • C = client outside firewall and cannot reach S on port 22 directly.

... but S can ssh to C, you could have S setup a reverse port forward by something like this:

server% ssh -fR 8822:localhost:22 client

then, later, you can connect from the client to the server by connecting to the local port on the client which is forwarding traffic to the server.

client% ssh localhost -p 8822