SSH using source interface gi0/1

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
Routing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2018 01:21 AM
Hello
Yes it is -
ip ssh source-interface x/x
Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.
Kind Regards
Paul

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2019 08:02 AM
You have to go into configuration mode: conf t
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Rick
