Carl Karsten wrote:
>> would it be possible to set
>> ocs_daemonon="ssh" and usercrypted via dhcp parameters?
>>
btw - given the dhdp thing removes the need for typing, it would be reasonable
to send a public key. Which would be a more secure, and I wouldn't have to
ever
enter my password.
I like that too.
>
> Here is how to get the parameters from the server to the client. All that
> remains is for the code that currently for boot parameters to look here too.
> If
> you will direct me to that code, I will propose something.
>
> btw - my personal goal is to be able to use this to fix a hijacked box. But
> it
> will fit in nicely with Clonezilla: put unmodified Clonezilla CD in box,
> boot,
> ssh in from 2nd box, run clonezilla. Which I currently can do with PXE, but
> it
> would be nice for those that do not have that setup and just want to boot/run
> from a physical CD.
>
> #########################################
> # /etc/dhcp3/dhcpd.conf
> option cz_ocs_daemonon code 224 = string;
> option cz_usercrypted code 225 = string;
>
> subnet 192.168.1.0 netmask 255.255.255.0 {
> range 192.168.1.10 192.168.1.254 ;
> option cz_ocs_daemonon "ssh";
> option cz_usercrypted "iTBGwkbHzKDfk";
> }
> #########################################
> # /etc/dhcp3/dhclient.conf
> # Configuration file for /sbin/dhclient, which is included in Debian's
> # dhcp3-client package.
>
> option cz_ocs_daemonon code 224 = string;
> option cz_usercrypted code 225 = string;
>
> request cz_ocs_daemonon, cz_usercrypted,
> subnet-mask, ... ;
>
> #########################################
> After a dhclient gets an IP...
>
> ju...@dell30:~$ grep cz /var/lib/dhcp3/dhclient.leases
> option cz_ocs_daemonon "ssh";
> option cz_usercrypted "iTBGwkbHzKDfk";
>
> #########################################
> # /etc/dhcp3/dhclient-exit-hooks.d/debug
> # writes out parameters to temp file
> for i in ....new_cz_ocs_daemonon new_cz_usercrypted
> echo $i=\'${!i}\' >> /tmp/dhclient-script.debug
> #############
> ju...@dell30:~$ grep cz /tmp/dhclient-script.debug
> new_cz_ocs_daemonon='ssh'
> new_cz_usercrypted='iTBGwkbHzKDfk'
> #########################################
>
> Carl K
>
> ------------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> _______________________________________________
> Clonezilla-live mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/clonezilla-live
>
>
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Clonezilla-live mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clonezilla-live