D
D
Dmitry2011-11-21 08:27:45
SSH
Dmitry, 2011-11-21 08:27:45

SSH on closed ports

On the working Internet, port 22 is closed, therefore it is impossible to simply ssh to the server. The question is how can this be done beautifully?
SSH on another port cannot be hung up. You cannot use a proxy (we get the Internet through a local proxy).

Answer the question

In order to leave comments, you need to log in

8 answer(s)
M
masterclass, 2011-11-21
@masterclass

Unix is ​​required, which will be controlled by you and located on the Internet. Run the following on it:
ssh 127.0.0.1 -L 1.1.1.1:80:2.2.2.2:22, where:
1.1.1.1 is the IP of your server
2.2.2.2 is the IP of the server you need to get to according to the task condition.
I'm really not sure that this will pass through the proxy (there is no way to check now), but with NAT open on dst-port 80, it will work 100%

M
mark_ablov, 2011-11-21
@mark_ablov

Back-connect is usually used in such cases.
That is, let the server itself cling to the client machine through the port that is available to it.

Y
YourChief, 2011-11-21
@YourChief

either use openvpn, or add a DNAT rule of port 443 to port 22 and break through the HTTP CONNECT proxy on port 443 of your server - this should be allowed in the proxy

R
rPman, 2011-11-21
@rPman

In the general case, just setting up an outgoing VPN connection from your closed server to another one - your open one (this is how the local network works for me, connecting 4 computers that are widely spaced, three of them on Windows).

B
bdmalex, 2011-11-21
@bdmalex

I would look in the direction of "port knocking", but according to the conditions it is not clear whether it is possible or not to use it ...

R
Riateche, 2011-11-21
@Riateche

1) Try to set up Socks proxy over HTTP. It all depends on how your proxy is configured (whether it supports the connect method, for example). If there is a normal https, then google "ssh over https", everything is fine there too.
2) Raise a web interface to ssh on the server. Ready-made scripts exist, it's easy to set up. But you can't forward the port. It all depends on what you need ssh for.

L
laQie, 2011-11-22
@laQie

For such things there is a Bouncer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question