Accidentally removed OpenSSH host key using `apt purge` [closed]












0














I accidentally removed my server's host key using apt purge openssh-client. I was trying to regenerate /etc/ssh/sshd_config, but didn't realize a purge would remove all keys...



Do you have any advice for recovering it? Unfortunately, I don't have any backups.










share|improve this question













closed as unclear what you're asking by muru, dessert, guntbert, user68186, George Udosen Dec 27 '18 at 9:25


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1




    Why do you need the old key?
    – muru
    Dec 16 '18 at 5:48






  • 2




    There only 'recovery' from a Purge is to restore from backup. Sorry, but it's gone.
    – user535733
    Dec 16 '18 at 8:49












  • @muru Because I don't want my server's host key to randomly change?
    – Dev
    Dec 17 '18 at 8:42






  • 2




    So what? You know it's changing, you have control of when it's going to change, you'll know what the key is when it changes. I don't see a problem.
    – muru
    Dec 17 '18 at 8:46










  • Strange: you purged client and the host key got deleted?
    – guntbert
    Dec 22 '18 at 20:38
















0














I accidentally removed my server's host key using apt purge openssh-client. I was trying to regenerate /etc/ssh/sshd_config, but didn't realize a purge would remove all keys...



Do you have any advice for recovering it? Unfortunately, I don't have any backups.










share|improve this question













closed as unclear what you're asking by muru, dessert, guntbert, user68186, George Udosen Dec 27 '18 at 9:25


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1




    Why do you need the old key?
    – muru
    Dec 16 '18 at 5:48






  • 2




    There only 'recovery' from a Purge is to restore from backup. Sorry, but it's gone.
    – user535733
    Dec 16 '18 at 8:49












  • @muru Because I don't want my server's host key to randomly change?
    – Dev
    Dec 17 '18 at 8:42






  • 2




    So what? You know it's changing, you have control of when it's going to change, you'll know what the key is when it changes. I don't see a problem.
    – muru
    Dec 17 '18 at 8:46










  • Strange: you purged client and the host key got deleted?
    – guntbert
    Dec 22 '18 at 20:38














0












0








0







I accidentally removed my server's host key using apt purge openssh-client. I was trying to regenerate /etc/ssh/sshd_config, but didn't realize a purge would remove all keys...



Do you have any advice for recovering it? Unfortunately, I don't have any backups.










share|improve this question













I accidentally removed my server's host key using apt purge openssh-client. I was trying to regenerate /etc/ssh/sshd_config, but didn't realize a purge would remove all keys...



Do you have any advice for recovering it? Unfortunately, I don't have any backups.







server 18.04 openssh purge






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 16 '18 at 5:44









Dev

3411420




3411420




closed as unclear what you're asking by muru, dessert, guntbert, user68186, George Udosen Dec 27 '18 at 9:25


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as unclear what you're asking by muru, dessert, guntbert, user68186, George Udosen Dec 27 '18 at 9:25


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 1




    Why do you need the old key?
    – muru
    Dec 16 '18 at 5:48






  • 2




    There only 'recovery' from a Purge is to restore from backup. Sorry, but it's gone.
    – user535733
    Dec 16 '18 at 8:49












  • @muru Because I don't want my server's host key to randomly change?
    – Dev
    Dec 17 '18 at 8:42






  • 2




    So what? You know it's changing, you have control of when it's going to change, you'll know what the key is when it changes. I don't see a problem.
    – muru
    Dec 17 '18 at 8:46










  • Strange: you purged client and the host key got deleted?
    – guntbert
    Dec 22 '18 at 20:38














  • 1




    Why do you need the old key?
    – muru
    Dec 16 '18 at 5:48






  • 2




    There only 'recovery' from a Purge is to restore from backup. Sorry, but it's gone.
    – user535733
    Dec 16 '18 at 8:49












  • @muru Because I don't want my server's host key to randomly change?
    – Dev
    Dec 17 '18 at 8:42






  • 2




    So what? You know it's changing, you have control of when it's going to change, you'll know what the key is when it changes. I don't see a problem.
    – muru
    Dec 17 '18 at 8:46










  • Strange: you purged client and the host key got deleted?
    – guntbert
    Dec 22 '18 at 20:38








1




1




Why do you need the old key?
– muru
Dec 16 '18 at 5:48




Why do you need the old key?
– muru
Dec 16 '18 at 5:48




2




2




There only 'recovery' from a Purge is to restore from backup. Sorry, but it's gone.
– user535733
Dec 16 '18 at 8:49






There only 'recovery' from a Purge is to restore from backup. Sorry, but it's gone.
– user535733
Dec 16 '18 at 8:49














@muru Because I don't want my server's host key to randomly change?
– Dev
Dec 17 '18 at 8:42




@muru Because I don't want my server's host key to randomly change?
– Dev
Dec 17 '18 at 8:42




2




2




So what? You know it's changing, you have control of when it's going to change, you'll know what the key is when it changes. I don't see a problem.
– muru
Dec 17 '18 at 8:46




So what? You know it's changing, you have control of when it's going to change, you'll know what the key is when it changes. I don't see a problem.
– muru
Dec 17 '18 at 8:46












Strange: you purged client and the host key got deleted?
– guntbert
Dec 22 '18 at 20:38




Strange: you purged client and the host key got deleted?
– guntbert
Dec 22 '18 at 20:38










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Mont Emei

Province de Neuquén

Journaliste