So I got my machine say it's IP is and my Cisco lan switch is my public IP is and my other network is the same but it's public IP is

So the question is how do I ssh to on the second network? I feel like I need to tunnel through the second lan somehow.


What's your gateway device?

Basically you need to setup on your port forwarding (or triggering, there is different terminology in different vendors).
For example you setup your port 443 or 15000 (or whatever you please) to forward to your local ip port 22.
Then on your source (which is behind you will connect like this

ssh -p 443

-p port number you will need to match with your port forwarding rule.

  • Is there any way to do it without ports since I have hundreds of machines I'd like to access on the switch. – MatthewEnderle Nov 6 '16 at 5:35
  • Yes, with the Site to Site VPN. In your case since subnets overlap you would need to NAT. Have a look here cisco.com/c/en/us/support/docs/security-vpn/… – Dmitry Zayats Nov 6 '16 at 5:50
  • Brace yourself for lots of issues though, if possible to change the addressing of one of the private networks, it'll save you a lot of headaches. – Didi Kohen Nov 6 '16 at 18:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.