10-10-2018 01:17 AM
In cisco router, Is it possible to ssh using source interface or source ip address just like telnet ip /source-interface?
ciscoswitch#telnet 10.14.2.1 /source-interface gi0/1
10-10-2018 01:21 AM
Hello
Yes it is -
ip ssh source-interface x/x
10-10-2018 01:36 AM
I dont see this command in switch and router.
Switch1#ip ssh ?
% Unrecognized command
R1#ip ssh ?
% Unrecognized command
02-26-2019 08:02 AM
You have to go into configuration mode: conf t
01-12-2021 12:12 PM - edited 01-12-2021 12:13 PM
Hi Paul,
So , is this going to be like a permanent configuration?
Every time I SSH to another network device this source interface I configured (for example Loopback 0) will be the source of my SSH connection?
Thanks,
01-13-2021 08:58 AM
If you start with config t and then enter the command ip ssh source-interface x/x and remember to copy run start then this is a permanent change and will specify the source address for any SSH initiated from this device.
01-13-2021 09:11 AM
Thanks Richard. I tried it yesterday and it worked. I was doing an ASA firewall configuration where I applied a policy that only SSH from a specific loopback interface would be allowed and was wondering how to do that. This post helped me do it.
01-13-2021 10:12 AM
Glad that this discussion pointed you in the right direction. Thank you for sharing your experience with the community. This community is an excellent place to ask questions and to learn about networking. I hope to see you continue to be active in the community.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide