0
What happen when I do an SSH port redirection trough Cygwin SSH ?
I mean, does Cygwin has the power to redirect a port in Windows, without administrator rights ?
Or do he effectively redirect ports but only for apps runed with Cygwin ?
Or do he not redirect port considering that i'm not really on a Unix system ?
I tried to understand by making connection test to a Linux server, but i can't receive anything, I don't think that theres any port redirection, the app just send trough original port and the packet get lost because SSH only listen on the server side and only on a certain port that is not the port that I send through
Whats your opinion ?
What i'm trying to do : VNC trough SSH
netstat shows me that a local ephemeral port is connected to the SSH port of my server, but nothing about the redirected port, but, I mean, it's SSH who handle the port forwarding, i'm not supposed to have an open port other than the SSH one. SSH will send all through his own port, no ?
What I understand from tunneling is that is supposed to be like that :
VNC viewer => SERVERIP:VNCPORT => ssh transform : SERVERIP:SSHPORT => Local NIC => Internet => Server NIC => ssh transform SERVERIP:VNCPORT => VNC Server
So the application believes that the communication goes to internet in VNCPORT but it goes actually with SSHPORT, it's just encapsulation
The problem is, considering that, I should not experience problems using VNC, the fact is that I can't use it, no packet arrives to the server when a VNC viewer try to connect (and the SSH session is established, so it works well otherwise)
Well, actually not nothing but just that :
TCP 127.0.0.1:5900 0.0.0.0:0 LISTENING
TCP [::1]:5900 [::]:0 LISTENING
And they dissapear when I close the SSH session
Does that mean that theres an actual tunnelling ? Is it system-wide, user-wide, Cygwin-wide ?
show what you are doing and we can comment. If you are NOT a windows Admin, Cygwin programs can NOT magically grant you the necessary privileges. – matzeri – 2020-02-22T11:21:49.347
I know that he cannot, but is Cygwin even can do port forwarding at all ?, I mean, I doesn't get errors at all, maybe he just can't do that. Do you have any experience with port forwarding in Cygwin ? How can i verify if the computer outputs in the source port or does he effectively forward something ? – wxi – 2020-02-22T11:58:31.057
I think you may be misunderstanding what SSH port forwarding is. It is entirely unlike the port forwarding you may be able to set up on your router. – Daniel B – 2020-02-22T12:42:31.277
Okay, but whatever my comprehension is, the fact is that it doesn't work... – wxi – 2020-02-22T12:53:37.860