Ssh connexion without typing password on Cisco routers

Answered Question
Jul 29th, 2009
User Badges:

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

Correct Answer by yjdabear about 7 years 11 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (1 ratings)
Loading.
romain.jouhannet Wed, 07/29/2009 - 07:01
User Badges:

Hi yjdabear,

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

BR

Romain

Actions

This Discussion