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

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.

Did not work?Any clue?Thanks

--

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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

Il giorno Mon, 01 Oct 2007 13:38:14 -0700
mond 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

?

Kindly,
David

--
. ''`. Debian maintainer | http://snipurl.com/qa_page/
: :' : Linuxer #334216 | http://www.hanskalabs.net/
`. `'` GPG: 1392B174 | http://www.debianizzati.org/
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

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

David Paleino writes:

> mond 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

--

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

On Oct 1, 4:20 pm, Sven Joachim wrote:
> David Paleino writes:
> > mond 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
>
> --

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

On Oct 1, 4:10 pm, David Paleino wrote:
> Il giorno Mon, 01 Oct 2007 13:38:14 -0700
> mond 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
>
> ?
>
> Kindly,
> David
>
> --
> . ''`. Debian maintainer |http://snipurl.com/qa_page/
> : :' : Linuxer #334216 | http://www.hanskalabs.net/
> `. `'` GPG: 1392B174 |http://www.debianizzati.org/
> `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
>
> signature.asc
> 1KDownload

thank you. Problem solved

--

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

On Mon, Oct 01, 2007 at 01:38:14PM -0700, mond wrote:
> 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.
>
> Did not work?Any clue?Thanks

Sure. From you /etc/ backup.

Doug.

--

Syndicate content