Ssh connexion without typing password on Cisco routers

Answered Question
Jul 29th, 2009
User Badges:


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!



Correct Answer by yjdabear about 7 years 11 months ago

Your best bet for automation is a scripting language such as Expect (, because SSH public key authentication is not supported in IOS:

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (1 ratings)
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.




This Discussion