RE: Restarting sshd v3.6.1 on Solaris
From: wjnorth (wjnorth_at_earthlink.net)
To: <Jason.Santos@pinnaclewest.com>, <email@example.com>, <firstname.lastname@example.org> Date: Sun, 18 May 2003 09:49:45 -0700
That's a good idea as well, unless you want everyone to start using that
config, then all shells have to be killed as well.
This isn't a very solvable problem, if the system is hardened completely
the only other way to access the system would be either physically or
through a console connection. I personally am unaware of a remote SSH
start command, without using a tool that can monitor the shell. We use
NetCool and it does a great job. In fact all of our SNMP traffic is
forwarded over SSH tunnels to the probes, if those tunnels go down,
Netcool attempts to restart them as well. Very nice.
Sent: Saturday, May 17, 2003 1:10 PM
To: email@example.com; firstname.lastname@example.org
Subject: RE: Restarting sshd v3.6.1 on Solaris
Your init.d script should just blithely kill all sshd processes, you
only need kill the parent process, either by looking in the sshd.pid
file or doing a ps -ef | grep sshd and look for the one with the PPID of
1. This will leave your existing connection open while restarting the
process listening on the port.
-- Jason Santos Sr. Unix System Administrator APS/Pinnacle West Phoenix, AZ USA -----Original Message----- From: Curt D McIntosh [mailto:email@example.com] Sent: Saturday, May 17, 2003 10:54 AM To: firstname.lastname@example.org Subject: Restarting sshd v3.6.1 on Solaris I have ssh 3.6.1p1 running on Solaris 2.5/6/7/8 and 9. Aside from walking over to the host and issuing /etc/init.d/sshd start, how do restart sshd if 1) it fails and 2) you modify the configuration file and need to restart it on a remote host? Thanks for the help, Mc