Automatically enabling SSH server on a router.

Automatically enabling SSH server on a router.

NewsGroups | Search | Tools
 comp.dcom.sys.cisco  Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  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-2005
Posted by AM on December 13, 2005, 6:17 pm
If you were  Registered and logged in, you could reply and use other advanced 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.

home networking made easy, greater protection, less stress, introducing nm 5.0, 728x90
Posted by Merv on December 13, 2005, 9:47 pm
If you were  Registered and logged in, you could reply and use other advanced 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
If you were  Registered and logged in, you could reply and use other advanced 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
Enabling ssh server on cat 4500 July 7, 2006, 9:15 am
Enabling SNMP on Cisco SOHO 97 router February 1, 2005, 5:22 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
Automatically Start VPN Client When Computer Starts July 17, 2004, 7:23 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

other useful resources:
The Federal Communications Commission (FCC)
Telecommunications Industry Association
Electronic and Software Security Products and Services
International Telecommunication Union

Custom CGI Perl and PHP programming by 1-Script.com

Contact Us | Privacy Policy
The site map in XML format XML site map