Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #158072 > unrolled thread

Openssh client or server problem?

Started byKaragkiaouris Diamantis <dkaragkiaouris@gmail.com>
First post2015-09-19 10:50 +0200
Last post2015-09-20 09:40 +0200
Articles 5 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  Openssh client or server problem? Karagkiaouris Diamantis <dkaragkiaouris@gmail.com> - 2015-09-19 10:50 +0200
    Re: Openssh client or server problem? Sven Hartge <sven@svenhartge.de> - 2015-09-19 13:30 +0200
      Re: Openssh client or server problem? Volker Thieme <not_my_name+debianusers@mailbox.org> - 2015-09-19 17:00 +0200
        Re: Openssh client or server problem? Volker Thieme <not_my_name+debianusers@mailbox.org> - 2015-09-19 17:00 +0200
        Re: Openssh client or server problem? Volker Thieme <not_my_name+debianusers@mailbox.org> - 2015-09-20 09:40 +0200

#158072 — Openssh client or server problem?

FromKaragkiaouris Diamantis <dkaragkiaouris@gmail.com>
Date2015-09-19 10:50 +0200
SubjectOpenssh client or server problem?
Message-ID<qam0i-4LD-7@gated-at.bofh.it>
Hello,

when i execute shutdown to my Debian 8 stable openssh-server from a 
debian laptop, the ssh shell in laptop hangs on even when the connection 
is closed due to shutdown. I am not aware of the cause of this problem. 
Do i need to configure something?

Thank you!

[toc] | [next] | [standalone]


#158078

FromSven Hartge <sven@svenhartge.de>
Date2015-09-19 13:30 +0200
Message-ID<qaov8-8pi-11@gated-at.bofh.it>
In reply to#158072
Karagkiaouris Diamantis <dkaragkiaouris@gmail.com> wrote:

> when i execute shutdown to my Debian 8 stable openssh-server from a
> debian laptop, the ssh shell in laptop hangs on even when the
> connection is closed due to shutdown. I am not aware of the cause of
> this problem.  Do i need to configure something?

This is a systemd phenomenon, which shuts down the computer so fast and
kills the networking before the sshd process serving your connection is
terminated.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.

[toc] | [prev] | [next] | [standalone]


#158080

FromVolker Thieme <not_my_name+debianusers@mailbox.org>
Date2015-09-19 17:00 +0200
Message-ID<qarMm-4vU-3@gated-at.bofh.it>
In reply to#158078
Hi!

> On 19 Sep 2015, at 13:25, Sven Hartge <sven@svenhartge.de> wrote:
> 
> Karagkiaouris Diamantis <dkaragkiaouris@gmail.com> wrote:
> 
>> when i execute shutdown to my Debian 8 stable openssh-server from a
>> debian laptop, the ssh shell in laptop hangs on even when the
>> connection is closed due to shutdown. I am not aware of the cause of
>> this problem.  Do i need to configure something?
> 
Same here...

> This is a systemd phenomenon, which shuts down the computer so fast and
> kills the networking before the sshd process serving your connection is
> terminated.
> 

At the shell prompt enter 

shutdown -h +1

and hit Enter twice. The ssh shell remains responsible and the session can be terminated via exit.

> Grüße,
> Sven.
> 
> -- 
> Sigmentation fault. Core dumped.
> 

[toc] | [prev] | [next] | [standalone]


#158081

FromVolker Thieme <not_my_name+debianusers@mailbox.org>
Date2015-09-19 17:00 +0200
Message-ID<qarMm-4vU-5@gated-at.bofh.it>
In reply to#158080
> 
> On 19 Sep 2015, at 16:51, Volker Thieme <not_my_name+debianusers@mailbox.org> wrote:
> 
> Hi!
> 
>> On 19 Sep 2015, at 13:25, Sven Hartge <sven@svenhartge.de> wrote:
>> 
>> Karagkiaouris Diamantis <dkaragkiaouris@gmail.com> wrote:
>> 
>>> when i execute shutdown to my Debian 8 stable openssh-server from a
>>> debian laptop, the ssh shell in laptop hangs on even when the
>>> connection is closed due to shutdown. I am not aware of the cause of
>>> this problem.  Do i need to configure something?
>> 
> Same here...
> 
>> This is a systemd phenomenon, which shuts down the computer so fast and
>> kills the networking before the sshd process serving your connection is
>> terminated.
>> 
> 
> At the shell prompt enter 
> 
> shutdown -h +1
> 
> and hit Enter twice. The ssh shell remains responsible and the session can be terminated via exit.

responsible = responsive :-) 

> 
>> Grüße,
>> Sven.
>> 
>> -- 
>> Sigmentation fault. Core dumped.
>> 
> 

[toc] | [prev] | [next] | [standalone]


#158088

FromVolker Thieme <not_my_name+debianusers@mailbox.org>
Date2015-09-20 09:40 +0200
Message-ID<qaHo6-1IH-9@gated-at.bofh.it>
In reply to#158080
On 20 Sep 2015, at 00:46, Dylan Scott <dylan@dylanscott.com.au> wrote:
> 
>> At the shell prompt enter 
>> 
>> shutdown -h +1
>> 
>> and hit Enter twice. The ssh shell remains responsible and the session can be terminated via exit.
> 
> If you ever forget, you can also disconnect an unresponsive SSH session by pressing 
> 
> ~.

Nice!! Thanks!

> 
> You need to do it after pressing enter though, I believe.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web