On Wed, Jul 27, 2011 at 10:41:07AM +0700, Ivan Shmakov wrote:
> AIUI, the .postinst scripts may be re-executed with
> dpkg-reconfigure(8).
[...]

In fact, for years I've relied on precisely this behavior to
regenerate SSH host keys when cloning machines (virtual or
physical)...

   sudo rm /etc/ssh/*_key* && sudo dpkg-reconfigure openssh-server

-- 
{ IRL(Jeremy_Stanley); WWW(http://fungi.yuggoth.org/); PGP(43495829);
WHOIS(STANL3-ARIN); SMTP(fu...@yuggoth.org); FINGER(fu...@yuggoth.org);
MUD(kin...@katarsis.mudpy.org:6669); IRC(fu...@irc.yuggoth.org#ccl);
ICQ(114362511); YAHOO(crawlingchaoslabs); AIM(dreadazathoth); }


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110727041243.ga1...@yuggoth.org

Reply via email to