Mailinglist Archive: opensuse (3565 mails)
| < Previous | Next > |
Re: [opensuse] SSH session not terminated when rebooting machine + startup question
- From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
- Date: Thu, 19 Apr 2007 23:32:36 +0200 (CEST)
- Message-id: <Pine.LNX.4.64.0704192315400.22290@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The Thursday 2007-04-19 at 22:19 +0200, mourik jan heupink wrote:
> Isn't this whole issue related to the fact that when a process is still active
> in that ssh session (namely: the reboot command), the session 'hangs' when
> closing..? This is normal, isn't it?
The original poster did not say that the shutdown command is issued from
the ssh session. That's an assumption made later by Harris.
Look: open a terminal in you computer, and do "ssh localhost". Then, shut
down the sshd daemon. I just did, and the client ssh is still running and
working! In fact, doing a "ps afx" shows that the sshd daemon did not die:
16412 ? Ss 0:00 sshd: cer [priv]
16414 ? S 0:00 \_ sshd: cer@pts/31
16415 pts/31 Ss+ 0:00 \_ -bash
And the log shows:
Apr 19 23:18:07 nimrodel sshd[16409]: Server listening on :: port 22.
Apr 19 23:18:19 nimrodel sshd[16412]: Accepted publickey for cer from 127.0.0.1 port 23422 ssh2
Apr 19 23:18:29 nimrodel sshd[16409]: Received signal 15; terminating.
but it hasn't terminated. During halt it will be forcibly killed later on
the sequence. I killed it via "killall sshd" and then the client died. I'm
not going to shutdown my computer to check, but as I recollect, I have
seen client sessions not dying.
- --
Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFGJ+AAtTMYHG2NR9URApyIAJ9N+ND7sGiGK33RlNr1uZ9QajNb3wCfUJee
c/c1pu5aH/2IoMr6a1xxK48=
=aXVm
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
Hash: SHA1
The Thursday 2007-04-19 at 22:19 +0200, mourik jan heupink wrote:
> Isn't this whole issue related to the fact that when a process is still active
> in that ssh session (namely: the reboot command), the session 'hangs' when
> closing..? This is normal, isn't it?
The original poster did not say that the shutdown command is issued from
the ssh session. That's an assumption made later by Harris.
Look: open a terminal in you computer, and do "ssh localhost". Then, shut
down the sshd daemon. I just did, and the client ssh is still running and
working! In fact, doing a "ps afx" shows that the sshd daemon did not die:
16412 ? Ss 0:00 sshd: cer [priv]
16414 ? S 0:00 \_ sshd: cer@pts/31
16415 pts/31 Ss+ 0:00 \_ -bash
And the log shows:
Apr 19 23:18:07 nimrodel sshd[16409]: Server listening on :: port 22.
Apr 19 23:18:19 nimrodel sshd[16412]: Accepted publickey for cer from 127.0.0.1 port 23422 ssh2
Apr 19 23:18:29 nimrodel sshd[16409]: Received signal 15; terminating.
but it hasn't terminated. During halt it will be forcibly killed later on
the sequence. I killed it via "killall sshd" and then the client died. I'm
not going to shutdown my computer to check, but as I recollect, I have
seen client sessions not dying.
- --
Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFGJ+AAtTMYHG2NR9URApyIAJ9N+ND7sGiGK33RlNr1uZ9QajNb3wCfUJee
c/c1pu5aH/2IoMr6a1xxK48=
=aXVm
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |