cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
565
Views
0
Helpful
1
Replies

create ssh keys with tftp file upload to startup?

Gerard Roy
Level 2
Level 2

Can I create ssh keys on a router via a new startup-config file. Anyone know the syntax?

1 Reply 1

Richard Burts
Hall of Fame
Hall of Fame

Jerry

I have not done this and have not tested it but I assume that it would work if you put the command to generate SSH keys into a file and used TFTP to put it into startup. The command would be:

crypto key generate rsa general mod 1024

Note that the syntax may vary slightly over IOS versions so you need to check the exact syntax on the model of router and version of IOS that you plan to use.

Also note that if you use this approach the keys will be stored in startup-config and the router will not generate the keys until the router is booted and reads the startup config. Also be aware that if someone does a copy run start (or write mem) between the time that you TFTP the file and the time that the router boots then the keys will no longer be in startup config.

Is there some reason why you want to TFTP to startup instead of TFTP to running config?

HTH

Rick

HTH

Rick
Review Cisco Networking products for a $25 gift card