cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2082
Views
17
Helpful
6
Replies

SSH from a router

royalblues
Level 10
Level 10

Can we initiate an SSH session from a cisco router or a switch to another device?

thanks in advance

Narayan

1 Accepted Solution

Accepted Solutions

hdecreis
Level 1
Level 1

Yes, IOS can include ssh client feature under some circonstances.

http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_command_reference_chapter09186a00800ca7d0.html#wp1023525

is a good start, feature navigator too ?

Hope this helps.

Cheers.

View solution in original post

6 Replies 6

hdecreis
Level 1
Level 1

Yes, IOS can include ssh client feature under some circonstances.

http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_command_reference_chapter09186a00800ca7d0.html#wp1023525

is a good start, feature navigator too ?

Hope this helps.

Cheers.

Thanks Helios,

But actually i wanted to know whether i can use ssh from one router to log on to the another router running SSH.

The link posted doesn't seem to help me in this regards

Narayan

Narayan,

Yes, you can.

The router that you are SSHing into as to be configured for SSH Server and the router that you are trying to SSH From has to support the SSH Client Feature.

Let me know if it helps.

Regards,

Arul

Hi,

routerA#ssh ?

-c Select encryption algorithm

-l Log in using this user name

-m Select HMAC algorithm

-o Specify options

-p Connect to this port

-v Specify SSH Protocol Version

WORD IP address or hostname of a remote system

routerA#ssh -v 1 -l admin routerB

Password:

routerB>exit

[Connection to routerB closed by foreign host]

routerA#

HTH

Andrea

Hum,

royalblues wrote:

> The link posted doesn't seem to help me in this regards

If, when pointed to the exact documentation page, on the precise command you need to use to do exactly what you want to do, it doesn't help you..

Then please accept my apologies for not being helpful enough ;-)

Cheers !

Sorry Helios,

It was my mistake that i was trying to initiate a SSH connection from a router not supporting ssh and hence was not able to issue the command.

One thing i found was it is not mandatory to enable ssh on the router from where you are initiating an ssh request, just the IOS should support SSH so that you can issue the command.

I resolve this case with your first post.

regards

Narayan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco