cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3426
Views
0
Helpful
3
Replies

Does Changing Hostname Require New SSH/RSA Keys?

ebanks2006
Level 1
Level 1

We need to change the hostname of a 6500 series router running native IOS. After changing the hostname, should we also regenerate our SSH/RSA keys? If we don't regenerate the keys, will this cause any problems?

I believe changing the hostname causes SSH to break on a PIX, but changing the hostname did not seem to break SSH on a test IOS box.

3 Replies 3

pradeepde
Level 5
Level 5

Yes, that's correct changing the hostname won't break the ssh when using a nios firewall

I have been recently bit by this.

My experience on IOS routers is that if you change the host name that it does indeed break SSH until you regenerate the keys.

HTH

Rick

HTH

Rick

ebanks2006
Level 1
Level 1

Heh. 2 answers, 2 opposite experiences. I think there may not be one definite answer to this, but it seems like a best practice to regenerate the keys when changing the hostname. That way, all the bases are covered.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: