[lug] Adding user to two machines at once?

Sean Reifschneider jafo at tummy.com
Thu Aug 23 22:18:43 MDT 2001


On Wed, Aug 22, 2001 at 05:51:44PM -0600, Justin wrote:
>the same user to the secondary box. The script of course would need to 
>somehow log into the secondary box and add the user there. That is what 

The script can use SSH to log into the second box and create the account.
You can either request that it ask you for the password to do so, or use
public/private identities (probably combined with the "command=" option in
the "authorized_keys" file to specify that only a particular command can be
run when using that key.  The ssh man page should provide the details on
the above.

You, of course, have to be VERY careful about the security of this sort of
setup.

Sean
-- 
 "McGuyver stole all his tricks from Dr. Who."
Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python



More information about the LUG mailing list