1 |
Hello, |
2 |
|
3 |
If you create a private-public pair with ssh-keygen you can access to |
4 |
the other machine without a password. Then your script would call ssh |
5 |
and probably "sudo /sbin/poweroff" as a parameter to halt the remote |
6 |
machine. |
7 |
|
8 |
|
9 |
On 11/25/05, Antoine <melser.anton@×××××.com> wrote: |
10 |
> Hi, |
11 |
> I would like to write a script to log in to a network machine and run |
12 |
> halt (for the missus, who doesn't really like logging in via ssh just to |
13 |
> turn of the internet connection...), and saw that autoexpect looks like |
14 |
> it would fit the bill. It doesn't seem to be in portage and it seems a |
15 |
> lot more difficult with expect... |
16 |
> Any ideas? |
17 |
> Cheers |
18 |
> Antoine |
19 |
> -- |
20 |
> gentoo-user@g.o mailing list |
21 |
> |
22 |
> |
23 |
|
24 |
|
25 |
-- |
26 |
Andres Becerra Sandoval |
27 |
|
28 |
-- |
29 |
gentoo-user@g.o mailing list |