Re: preserving ssh keys

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

 



On Thu, 3 Apr 2003, Philip Rowlands wrote:

Hi

> On Thu, 3 Apr 2003 Eric.Doutreleau@xxxxxxxxxxx wrote:
> 
> >i m wondering if someone has already written a %pre kickstart script
> >to backup ssh keys in order to put them back in place in the post
> >kickstart script.
> 
> Didn't we have this thread three days ago?
> 
> https://listman.redhat.com/pipermail/kickstart-list/2003-March/007823.html
> https://listman.redhat.com/pipermail/kickstart-list/2003-April/007842.html


Well i have missed it.

> 
> 
> No, perhaps we didn't. Try this:
> (untested, might make your computer catch fire)
> 
> %pre
> mkdir -p /mnt/ssh
> # if you know where / is, use the next line:
> #mount /dev/hda1 /mnt/ssh
> # if not, use this:
> #mount -L / /mnt/ssh
> cp -a ssh_host_* /tmp
> umount /mnt/ssh
> 
> and
> 
> %post --nochroot
> mv -f /tmp/ssh_host_* /mnt/sysimage/etc/ssh
> 
> 
> Cheers,
> Phil
> 

Well i will try it and perhaps try to write a more elaborate one.
if it works i will post the result on the list.

Thanks for your answer


> 
> 
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list@xxxxxxxxxx
> https://listman.redhat.com/mailman/listinfo/kickstart-list
> 

-- 
Eric Doutreleau
I.N.T			| Tel	: +33 (0) 160764687
9 rue Charles Fourier	| Fax	: +33 (0) 160764321
91011 Evry   France	| email	: Eric.Doutreleau@xxxxxxxxxxx





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux