[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: delete /etc/ssh/* bymistak, how recover?



David Paleino <d.paleino@gmail.com> writes:

> mond <mondzhu@gmail.com> ha scritto:
>
>> To fix some weird problem of ssh, I, using debian lenny, deleted /etc/
>> ssh* by mistake. Is it possible to recover it?
>> 
>> I tried $ sudo apt-get install ssh.
>
> apt-get --reinstall install ssh

This will not recreate missing conffiles (yes, this is a feature of
dpkg, not a bug ;-)). I would try

dpkg --force-confmiss -i /var/cache/apt/archives/*ssh*.deb

(assuming that the files are still there, apt-get download them
first if necessary). 

Regards,
        Sven



Reply to: