Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 999  / 3 Years ago, mon, june 21, 2021, 11:27:09

I messed up sshd_config and did not make a copy.
So I removed openssh-server, then installed openssh-server.
The installation complained with message.
Not replacing deleted config file /etc/ssh/sshd_config


Any suggestions for how to reinstall openssh-server?


On ubuntu 18.04


Somehow microk8s and rcopy also got uninstalled when I removed openssh-server. yikes, completely unexpected side effect.


Is there a recovery mode of ubuntu 18.04 where it will fix things when they get this badly messed up?


More From » ssh

 Answers
3

try


sudo apt-get purge openssh-server


it works for me:)



To purge a package means to delete it and its configuration files



[#954] Tuesday, June 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pardsea

Total Points: 290
Total Questions: 115
Total Answers: 98

Location: Svalbard and Jan Mayen
Member since Sun, Sep 25, 2022
2 Years ago
pardsea questions
Sat, May 27, 23, 02:49, 1 Year ago
Tue, Nov 16, 21, 15:20, 3 Years ago
Fri, Feb 24, 23, 01:56, 1 Year ago
;