Link to home
Start Free TrialLog in
Avatar of burnedfaceless
burnedfaceless

asked on

Changing SSH Keys

I removed the public SSH key from a server I was managing. THen I generated a new key and overwrote the old one on my laptop. THen I added the key to the server. it added two keys.

I thought it would be best practice to remove the old key and put the new one in. It seems like my old key is still being added to the server. Am I overthinking this?

Does it really not matter and should you not bother with changing SSH keys? I was going to change them by the business quarter.
SOLUTION
Avatar of Apurva Bhandari
Apurva Bhandari
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
if you're using systems which is placed in DMZ zone then no need to worry. also if you're using policy like no root login or copying from one server to another with script or through command without asking password then it's always good to add and for existing system no need to delete and  generate new one. but if you want to change it then definitely you should delete old one the. create new one in such a scenario there will be no issue while updating the keys
Avatar of Michelangelo
Bernedfaceless, what does it mean "it added two keys" ?
You should add the public key to the remote server, and that action will result in one kay added. Double check you did not add previous key too, and make sure you did not add the private key of the newly generated pair
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial