Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a ssh server, and some clients have login it via key login. So the host identity of server has been stored in the known_host of clients.

I want to reinstall the server, but I hope it never impact the experience of client. I'm wondering whether it's possible to backup the host identity of server, then restore it.

share|improve this question

1 Answer 1

up vote 7 down vote accepted
  • You can backup those keys from /etc/ssh/ssh_host*
  • You can also backup all in /etc/ssh directory so that you keep all config and keys.
  • And to restore put your keys back in the same location /etc/ssh

alt text

share|improve this answer
thanks. it works well. –  Kane Dec 13 '10 at 3:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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