cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
311
Views
0
Helpful
3
Replies
Beginner

Limiting SSH to Loopback Address Only

I am attempting to stop ssh to any IP on my switches accept the loopback address. I have created a few different access lists and applied them as an access-class on the vty lines, but this just locks me out of the switch all together. 

 

Here is the issue, we have a vuln scanner that logs into our devices and provides a report of items found, but it keeps logging into the wrong interface so the report does not include the DNS name of the device... I want to stop SSH into VLAN IPs or uplink IPs to get the more readable report and when the scanner hits more than one address on the same device it reports the vulns for each IP address. 

 

Below is an example of what I attempted and was unable to access my test switch after the changes.

 

The point is to allow SSH only to the loopback interface, not initially to limit where it is coming from.

 

access-list 101 permit 22 any host 10.10.10.10

line vty 0 4

access-class 101 in 

 

I have done a few more variations but it does not seem to matter as soon as this goes on it blocks access to VTY lines. 

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
VIP Expert

Re: Limiting SSH to Loopback Address Only

3 REPLIES 3
Highlighted
VIP Expert

Re: Limiting SSH to Loopback Address Only

Highlighted
Beginner

Re: Limiting SSH to Loopback Address Only

Thanks for the link, that is the response I needed. 

Highlighted
VIP Expert

Re: Limiting SSH to Loopback Address Only

Glad to help.

Good luck!

 

CreatePlease to create content
Content for Community-Ad