I generated new ssh key value pair for logging onto my server. I now want to disable usage of the first key pair cause old users have it and it's a security risk.

How do I do that.

link|improve this question

60% accept rate
feedback

2 Answers

up vote 3 down vote accepted

There is a file at /home/<user>/.ssh/authorized_keys. Every line contains a key which is allowed to log in.

If you remove the old key from here and save the file, the old key is useless

link|improve this answer
feedback

Simply replace the old ones with the new ones.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.