Hello, I am trying to use a router or a switch for that matter as a jump host to access other hosts in that network over the ssh connection I already have to this router or switch. This is also called an SSH tunnel or as I understand X11 forwarding and is a feature which should be enabled by default in an ssh server, so expect this also to be in Cisco. However, I cannot get this to work.
Example:
So I have a site with a router with WAN address of 1.2.3.4
On its LAN side it has 192.168.10.1
There is a web server on the LAN with address 192.168.10.10 which has standard port 80 open
I connect over ssh over the WAN to the WAN address of the router. Normally use putty for this, but for clarity here I demonstrate with plink to connect as follows:
plink -v -x -a -T -C -noagent -ssh -L 127.0.0.1:1234:192.168.10.10:80 <user>@1.2.3.4
It then ask me for the password after which I get an ssh session to the router
I then open a new cmd window and check to see if my local port is listening. This is the case::
C:\Users\<user>>netstat -ano | find "1234"
TCP 127.0.0.1:1234 0.0.0.0:0 LISTENING 6128
TCP [::1]:1234 [::]:0 LISTENING 6128
I then do a telnet to this port as follows:
telnet localhost 1234
A black windows opens indicating the session is opening, but after pressing enter 1 time I drop out of the session
When checking the logging of the plink session, I see the following:
<routername>#Opening connection to 192.168.10.10:80 for forwarding from [::1]:61398
Forwarded connection refused by server: Resource shortage []
Anybody can help?