Answer the question
In order to leave comments, you need to log in
How to connect to a port on a remote server?
Faced the problem of remote debugging in intelliJ IDEA and I don't understand how to solve it. I made a tunnel to the localhost from a remote environment, on the remote I start a server with a logger on the port. When I try to run debug on localhost, I get an error.
This is what curl outputs:
[email protected] ~ curl localhost:7071
debug1: Connection to port 7071 forwarding to [email protected] port 7071 requested.
debug1: channel 2: new [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
debug1: channel 2: free: direct-tcpip: listening port 7071 for [email protected] port 7071, connect from 127.0.0.1 port 52031 to 127.0.0.1 port 7071, nchannels 3
curl: (52) Empty reply from server
At the same time, on a remote server in the sshd config AllowTcpForwarding yes I've been racking my brain for
half an hour =/
What can interfere with a normal connection to a port through a tunnel?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question