7 Aug
2013
7 Aug
'13
5:54 p.m.
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