Showing results for 
Search instead for 
Did you mean: 

SSH to a host in a VRF

Level 1
Level 1

I have a 3825 running c3825-advipservicesk9-mz.124-13b.bin. I have multiple VRFs defined on it. Is there a way to ssh from the router to a host inside a VRF similar to:

telnet /vrf word

9 Replies 9

Joe Clarke
Cisco Employee
Cisco Employee

As of 12.4(20)T, the ssh command supports a -vrf option. It has not been merged into other trains.

Would this be the correct syntax?

ssh -l user -vrf

When I do this, it gives me the error:

% Destination unreachable; gateway or host down

However, I can ping inside the VRF and get a reply.

You're missing the actual VRF name. The syntax would be:

ssh -l user -vrf NAME

Where NAME is the name of the VRF.

I get the following error:

router#ssh -l user -vrf name


% Invalid input detected at '^' marker.

Unless you're running 12.4(20)T or higher, you don't have this command. I had assumed you upgraded, but if you're still on 12.4(13b), then you will not be able to use SSH with VRF support.

Thanks for heads up, I will give this a try in the lab. This will certainly help if I can make it work.


We're trying to do the same thing except with a 6509-E running 12.2(33)SXH4.  Is there an IOS for the 6509-E that will allow us to SSH through a VRF?



I do not see a version of CatIOS which supports this command.  I only see that it was integrated into 12.4(20)T.

Ok, thanks.

Review Cisco Networking for a $25 gift card