I want to SSH into a Cisco 1841 router and depending on the suffix added to the SSH (i.e ssh myrouter.myroute.com 2002), would like it to forward this request to a terminal server.
Can this be done? If so, how does one accomplish this? I have done something similar with RDP but I was not sure about SSH.
Should be done the same way if your translating the port inbound. You can change the default ssh port on your 1841 with:
ip ssh port
Otherwise, you'll do your standard nat statements listening on the port that you want and then translating that port inbound:
ip nat inside source static tcp 192.168.1.20 22 184.108.40.206 2020
When you ssh into 220.127.116.11 2020 it will redirect to 192.168.1.20 on 22.
I know its thee year longs post, but if I want to achieve i.e.ssh on 18.104.22.168 ip on port 22 through port translation to port 1000 but keeping ip same i.e 22.214.171.124 then how I would achieve it?
I have already done below mentioned thing.but no success.
ip nat inside source static tcp 126.96.36.199 22 188.8.131.52 1000
I will test this today. Thank you all. I have a question about SSH into an 1841. How does this need to be configured if I would like to use a 3rd party certificate like a Comodo certificate?