From: "Stephen Wittig" <nofx911@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] SSH won't restart
Date: Mon, 10 Sep 2007 13:10:33 -0500 [thread overview]
Message-ID: <f1c96f570709101110p48177a73x2ea8d812237f9175@mail.gmail.com> (raw)
In-Reply-To: <49bf44f10709101054r13c8b7c4w90f0051ade528dcb@mail.gmail.com>
Yes. As a personal preference I don't usually chain commands together
when trouble shooting something, but there is technically nothing
wrong with doing so.
-Stephen
On 9/10/07, Grant <emailgrant@gmail.com> wrote:
> > This process is the ssh daemon:
> > root 2988 1 0 Sep04 ? 00:00:00 /usr/sbin/sshd
> >
> > Two things: before killing the process with the KILL signal, I would
> > try killing it with TERM
> > kill -TERM 2988
> >
> > If that doesn't work then kill the process with the KILL signal.
> >
> > I would also use:
> > /etc/init.d/sshd restart
> >
> > This will give the init script a chance to do some cleanup work before
> > restarting
>
> Do this:
>
> kill -TERM 2988 && /etc/init.d/sshd restart
>
> and if that doesn't work, do:
>
> kill -9 2988 && /etc/init.d/sshd restart
>
> ?
>
> - Grant
>
>
> > > > I just upgraded ssh and when I try to restart I get:
> > > >
> > > > * Stopping sshd ... [ !! ]
> > > >
> > > > I don't see anything about it in '/var/log/sshd/current'. How can I
> > > > figure out what is wrong? I'm a little nervous because I don't want
> > > > to shut myself out of this remote server.
> > > >
> > > >
> > > > I had a similar issue after a previous update to ssh when I went to restart
> > > > it to get it to use the new binaries. One of the nice features of sshd is
> > > > that your current session will say active even if you kill the sshd daemon
> > > > process. Of course, if you get disconnected then you will not be able to
> > > > log back in, so it's good to do what you need to quickly if you do need to
> > > > kill (or if it's really stuck, kill -9) the process. When I had this
> > > > problem I issued a `kill -9 PID_NUMBER && /etc/init.d/sshd start` - just be
> > > > sure that you're killing the /usr/sbin/sshd process and not one of your sshd
> > > > login forks at the same time.
> > >
> > > OK, I've got to be really careful here. I see the following processes
> > > in 'ps -ef':
> > >
> > > root 2988 1 0 Sep04 ? 00:00:00 /usr/sbin/sshd
> > > root 7573 2988 0 07:28 ? 00:00:00 sshd: root@pts/0
> > >
> > > Should I:
> > >
> > > kill -9 2988 && /etc/init.d/sshd start
> > >
> > > Are you sure? :)
> > >
> > > - Grant
> --
> gentoo-user@gentoo.org mailing list
>
>
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2007-09-10 18:28 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-08 15:40 [gentoo-user] SSH won't restart Grant
2007-09-08 16:46 ` Alex Schuster
2007-09-08 18:10 ` Josh Cepek
2007-09-08 20:50 ` Alex Schuster
2007-09-09 2:05 ` Dan Farrell
2007-09-10 16:58 ` Grant
2007-09-10 17:28 ` Dan Farrell
2007-09-10 17:29 ` Stephen Wittig
2007-09-10 17:54 ` Grant
2007-09-10 18:10 ` Stephen Wittig [this message]
2007-09-10 19:12 ` Grant
2007-09-10 19:29 ` Dan Farrell
2007-09-10 19:40 ` Grant
[not found] ` <49bf44f10709101223j51dc1138j27f4bd17ad48275f@mail.gmail.com>
2007-09-10 19:38 ` Dan Farrell
2007-09-10 20:14 ` Grant
2007-09-10 20:24 ` Daniel da Veiga
2007-09-10 20:48 ` Grant
2007-09-10 21:05 ` Daniel da Veiga
2007-09-11 16:09 ` Dan Farrell
2007-09-11 16:08 ` Dan Farrell
2007-09-11 19:30 ` Grant
2007-09-11 20:17 ` Hans-Werner Hilse
2007-09-11 20:18 ` Boyd Stephen Smith Jr.
2007-09-11 21:21 ` Grant
2007-09-12 16:14 ` Dan Farrell
2007-09-10 21:52 ` Stephen Wittig
2007-09-10 18:05 ` Arturo 'Buanzo' Busleiman
2007-09-10 18:39 ` Stephen Wittig
2007-09-10 19:19 ` Arturo 'Buanzo' Busleiman
2007-09-10 22:50 ` Stephen Wittig
2007-09-10 23:30 ` Arturo 'Buanzo' Busleiman
2007-09-11 0:43 ` Stephen Wittig
2007-09-10 23:34 ` Grant
2007-09-11 0:40 ` Stephen Wittig
2007-09-10 19:28 ` Dan Farrell
2007-09-10 20:53 ` Hans-Werner Hilse
2007-09-16 15:33 ` Mike Williams
2007-09-16 15:40 ` [gentoo-user] " Alexander Skwar
2007-09-16 16:29 ` Mike Williams
2007-09-16 17:01 ` [gentoo-user] " Alexander Skwar
2007-09-17 13:03 ` Mike Williams
2007-09-17 13:17 ` [gentoo-user] " Alexander Skwar
2007-09-17 14:15 ` Arturo 'Buanzo' Busleiman
2007-09-17 15:30 ` Hans-Werner Hilse
2007-09-17 16:06 ` Albert Hopkins
2007-09-18 8:11 ` [gentoo-user] " Alexander Skwar
2007-09-18 11:13 ` Arturo 'Buanzo' Busleiman
2007-09-16 17:49 ` [gentoo-user] " Graham Murray
2007-09-16 18:00 ` Arturo 'Buanzo' Busleiman
2007-09-16 20:25 ` [gentoo-user] " Alexander Skwar
2007-09-16 20:59 ` Arturo 'Buanzo' Busleiman
2007-09-16 21:53 ` [gentoo-user] " Alexander Skwar
2007-09-16 21:55 ` Arturo 'Buanzo' Busleiman
2007-09-17 15:05 ` [gentoo-user] " Hans-Werner Hilse
2007-09-17 15:56 ` Arturo 'Buanzo' Busleiman
2007-09-17 16:34 ` Hans-Werner Hilse
2007-09-17 17:00 ` Arturo 'Buanzo' Busleiman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f1c96f570709101110p48177a73x2ea8d812237f9175@mail.gmail.com \
--to=nofx911@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox