Re: How to reboot remotely without hanging ssh session?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Although this isn't really solution you could simply terminate the ssh
connection after running ``systemctl reboot`` by pressing the escape
character ('~' by default) and then '.' (see "ESCAPE CHARACTERS" in
``man ssh``).

If you know ssh is going to hang, exiting is just two keystrokes away.
I know it's not ideal but its good enough for me.

On 5 February 2014 20:05, Fons Adriaensen <fons@xxxxxxxxxxxxxx> wrote:
> On Wed, Feb 05, 2014 at 09:01:09PM +0100, Karol Babioch wrote:
>
>> Am 05.02.2014 20:19, schrieb David C. Rankin:
>> >   However with systemd, using "systemctl reboot" the ssh session hangs
>> > until the remote host reboot or a timeout occurs.
>>
>> you probably want to follow the following discussion(s):
>>
>> - https://bugs.archlinux.org/task/31250
>> - https://bbs.archlinux.org/viewtopic.php?pid=1166093
>>
>> So, this is actually known and there seems to be no "clean" solution.
>
> I had the same problem with remote poweroff some months ago.
> The solution I used was to create a delayed systemd target.
>
> Ciao,
>
> --
> FA
>
> A world of exhaustive, reliable metadata would be an utopia.
> It's also a pipe-dream, founded on self-delusion, nerd hubris
> and hysterically inflated market opportunities. (Cory Doctorow)
>


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux