Le Mercredi 11 Juin 2003 09:50, MERILLON JEAN-JACQUES a �crit :
> Salut a tous
>
> J'ai une machine que je souhaite pouvoir arreter a distance par SSH.
> Actuelement je fais :
> ssh mamachine
> password
> halt
>
> Je voudrais pouvoir automatiser cela en ayant juste besoin de taper un
> ligne de commande du type halt-machineDistante
>
> Est ce que c'est possible et comment faire ??
>
man ssh_config dit :
BatchMode
If set to ``yes'', passphrase/password querying will be disabled.
This option is useful in scripts and other batch jobs where no
user is present to supply the password. The argument must be
``yes'' or ``no''. The default is ``no''.
J'essaierais :
ssh [EMAIL PROTECTED] halt
Alain rpnpif
Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com"