cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
397
Views
0
Helpful
2
Replies

Ssh connexion without typing password on Cisco routers

Hi,

I'm looking for how to send a router command (like copy running working, or upgrade IOS) but without typing any login or password. The idea is to perform automaticaly by a shell script action like get the config file every week or upgrade an IOS every month automaticaly.

I guess I should use authentification keys. I tried by this way but without any success.

The version of my routers are 2600, 7200VXR and 3750.

Thank you for helping me if any ideas!

Regards,

Romain

1 Accepted Solution

Accepted Solutions

yjdabear
VIP Alumni
VIP Alumni

Your best bet for automation is a scripting language such as Expect (http://expect.nist.gov/), because SSH public key authentication is not supported in IOS:

http://www.cisco.com/en/US/docs/ios/sec_user_services/configuration/guide/sec_secure_shell_v2.html#wp1055232

View solution in original post

2 Replies 2

yjdabear
VIP Alumni
VIP Alumni

Your best bet for automation is a scripting language such as Expect (http://expect.nist.gov/), because SSH public key authentication is not supported in IOS:

http://www.cisco.com/en/US/docs/ios/sec_user_services/configuration/guide/sec_secure_shell_v2.html#wp1055232

Hi yjdabear,

Thank you for your answer. I'll look for in this way and hope it's not so hard.

BR

Romain

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: