Date: Sat, 27 Jan 2007 12:07:33 -0800 From: Noah <admin2@enabled.com> To: freebsd-questions@freebsd.org Subject: sshd never restarts Message-ID: <45BBB105.4010800@enabled.com>
next in thread | raw e-mail | index | archive | help
Hi there, FreeBSD 4.9 openssh-3.6.1_6 so I have a script /usr/local/etc/rc.d/sshd.sh that I use to restart sshd but sshd most of the time never comes back. there is nothing relevant that makes it to /var/log/messages if I start sshd manually with /usr/local/etc/rc.d/sshd.sh there are no error messages. My /etc/ssh/sshd_config configuration is fine and has no errors. how can I assure that sshd restarts each time? when I am remote to the machine. I am locked out of it. --- snip --- # cat /usr/local/etc/rc.d/sshd.sh #!/bin/sh # # $FreeBSD: ports/security/openssh/files/sshd.in,v 1.1 2006/06/09 21:54:03 pav Exp $ # # PROVIDE: sshd # REQUIRE: NETWORKING SERVERS USR # BEFORE: LOGIN # # Add the following lines to /etc/rc.conf to enable sshd # # sshd_enable (bool): Set to "NO" by default # Set it to "YES" to enable sshd . /usr/local/etc/rc.subr name="sshd" rcvar=${name}_enable load_rc_config ${name} : ${sshd_enable="NO"} : ${sshd_pidfile="/var/run/sshd.pid"} command="/usr/local/sbin/${name}" run_rc_command "$1" # grep ssh /etc/rc.conf sshd_enable="YES" ---- snip ---
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45BBB105.4010800>