Cisco Systems Automatically enabling SSH server on a router.

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Automatically enabling SSH server on a router. AM 12-13-05
Posted by AM on December 13, 2005, 6:17 pm
Please log in for more thread options
In order to automate the configuration of a router I insert the following command
"crypto key generate rsa general-keys modulus 1024"
but on startup the router says
"Rsa keys can't be generated by the startup configuration"

That's true otherwise keys will change every reload. But how to have dozens of
routers set up and ready to be installed
and contacted by remote without doing a 2 step configuration? I mean once
started up I can contact the router via expect
through a telnet connection on my LAN (for example) and then tell the router to
create RSA keys.

Alex.

Posted by Merv on December 13, 2005, 9:47 pm
Please log in for more thread options
See if this will work:

! Generate RSA key

kron policy-list GEN_RSA
cli crypto key generate rsa general-keys modulus 1024
exit

kron occurrence in 5 oneshot
policy-list GEN_RSA
exit


Posted by AM on December 14, 2005, 3:33 am
Please log in for more thread options
Merv wrote:
> See if this will work:
>
> ! Generate RSA key
>
> kron policy-list GEN_RSA
> cli crypto key generate rsa general-keys modulus 1024
> exit
>
> kron occurrence in 5 oneshot
> policy-list GEN_RSA
> exit

No it doesn't. Doing a "sh run" the router has removed the kron command that
would have started the kron policy.

Alex.

Similar ThreadsPosted
Automatically enabling SSH server on a router. December 13, 2005, 6:17 pm
Enabling ssh server on cat 4500 July 7, 2006, 9:15 am
enabling/dissabling ip multicast traffic in real time on a Cisco router using windows script July 23, 2005, 9:10 pm
Setting up a router with 29 Global IPs, BUT can't ping router internal interface from server or server interface from router December 11, 2005, 10:37 am
How is "pri" calculated automatically by GLBP ? July 1, 2008, 1:23 am
PCM352 not reauthenticating LEAP automatically April 2, 2006, 3:44 pm
Saving log/config files automatically on MDS/switches October 3, 2006, 2:44 pm
Setting up Cisco VPN client to automatically connect December 8, 2006, 9:15 am
Is it possible to automatically shape traffic after quota has been reached? February 26, 2007, 9:28 am
Input the username&password Automatically on the 802.1x client September 8, 2008, 11:07 pm
PIX object-groups automatically created named "_ref" ? October 15, 2007, 10:05 am
PIX 501 Version 6.2(2) not clearing local-host table automatically December 9, 2007, 3:55 am
Cat 6509 automatically put VLAN state into "suspended" and killed my network...why? January 23, 2007, 6:04 pm
problem enabling ISL on 3620 July 18, 2005, 1:44 pm
Enabling password on console port August 31, 2005, 9:21 am