[arch-general] remote poweroff with systemd
Daniel Albers
daniel at lbe.rs
Wed Aug 7 11:54:47 EDT 2013
On 05.08.2013 20:39, Fons Adriaensen wrote:
> ssh -t remote1 "sudo telinit 0"
>
> etc. This shuts down the first one OK, but then the script
> hangs. Apparently the ssh connection isn't closed cleanly.
Additionally to the approach you took or the ones proposed by others,
using ssh -o TCPKeepAlive=yes should help to terminate the SSH
connection to a dead peer at some point.
Cheers,
Daniel
More information about the arch-general
mailing list