Hi,
I think the scenario you are describing is:
logged into box A.
ssh to box B
do various things.....
halt (on box B)
===
This just sits there - the ssh does not break and return control
to you on box A.
This is identical behaviour to if you had unplugged the ethernet cable
from box B.
the ssh client on box A is waiting for packets from B - and will wait for
"ages". you "can" modify your tcp sockets on box A to have keep alives
etc. This is a bit excessive.
I suggest that you do
ssh to box B
do whateever
sudo su - (become root, which I suspect you have done
to issue the halt command)
halt & exit
and control will immediately return you to box A.
Derek.
On Thu, 15 Oct 2009, Ross Drummond wrote:
If I give the halt command on a remote box while connected through a ssh
client the ssh client hangs.
How do I prevent this?
Cheers Ross Drummond
--
Derek Smithies Ph.D.
IndraNet Technologies Ltd.
ph +64 3 365 6485
Web: http://www.indranet-technologies.com/
"The only thing IE should be used for is to download Fire Fox"
"My favorite language is call STAR. It's extremely concise. It has
exactly one verb '*', which does exactly what I want at the moment."
--Larry Wall