View Single Post
  #3  
Old 06-01-2019, 02:39 PM
ITEngineering ITEngineering is offline
Registered User
 
Join Date: May 2019
Posts: 3
Jump Server with Scripted Port forwarding

step1:

add new ssh2 session for a jumpserver with ip of 50.60.70.80
save the credentials for jubserver.

step2: once connected to jumserver - telnet to a modem at 10.20.30.40

step3: login to the gui of the same modem by launching a browser window http://localhost

step 3 wont work unless i first forwar tunnels from that original jumserver session.
right click saved jumserver session
under connection click port forwarding
click add
enter descriptive name : ForwardPort80
check manually enter local ip address
add ip of modem i am trying to connect to 10.20.30.40
add port i need forwarded: 80

add second port i need forwarded :8080

Now that forwarded ports are saved - launch browser to http://localhost to gain access to the gui interface to the modem

What is not clear is if i have the ip address of the modem on the clip board,
how do I automate this with SecureCRT so that the tunnels/portforward get setup with
the modem ip 10.20.30.40

Goal is to have the script opent both a telnet window and a gui window to the same device.

Any suggestions on how to script this in securtCRT would be welcome.
Reply With Quote