From nobody@FreeBSD.org  Sun Mar  5 22:30:39 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1D63016A420
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  5 Mar 2006 22:30:39 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C042243D46
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  5 Mar 2006 22:30:35 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k25MUZqC000420
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 5 Mar 2006 22:30:35 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k25MUZiU000419;
	Sun, 5 Mar 2006 22:30:35 GMT
	(envelope-from nobody)
Message-Id: <200603052230.k25MUZiU000419@www.freebsd.org>
Date: Sun, 5 Mar 2006 22:30:35 GMT
From: Pierre-Paul Lavoie <ppl@nbnet.nb.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD Handbook: 14.11.2 Enabling sshd
X-Send-Pr-Version: www-2.3

>Number:         94112
>Category:       docs
>Synopsis:       FreeBSD Handbook: 14.11.2 Enabling sshd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jcamou
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 05 22:40:04 GMT 2006
>Closed-Date:    Mon Mar 06 19:28:06 GMT 2006
>Last-Modified:  Mon Mar 06 19:28:06 GMT 2006
>Originator:     Pierre-Paul Lavoie
>Release:        6.0
>Organization:
>Environment:
>Description:
From FreeBSD handbook section 14.11.2

[quote url=http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/openssh.html]

This will load sshd(8), the daemon program for OpenSSH, the next time your system initializes. Alternatively, you can simply run directly the sshd daemon by typing sshd on the command line.

[/quote]

Typing sshd on the command line gives:

    sshd re-exec requires execution with an absolute path

Typing /usr/sbin/sshd solve this.

Also, afaik, it's very likely that if the user didn't select sshd at install time there will be no ssh keys. It would probably good to mention how to properly create the key at this point.

You also need to be root when launching sshd.

ppl
>How-To-Repeat:

>Fix:
Replace sshd with /usr/sbin/sshd
>Release-Note:
>Audit-Trail:

From: Daniel Gerzo <danger@rulez.sk>
To: bug-followup@FreeBSD.org, ppl@nbnet.nb.ca
Cc:  
Subject: Re: docs/94112: FreeBSD Handbook: 14.11.2 Enabling sshd
Date: Mon, 6 Mar 2006 16:37:37 +0000

 --oyUTqETQ0mS9luUI
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Hello,
 
    I think that this is a good place to show users that we have a nice
    rc scripts, so mention using it to start OpenSSH. This will actually
    cover the step with generation of the ssh keys.
 
 -- 
 Kind Regards,
    Daniel Gerzo
 
 --oyUTqETQ0mS9luUI
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="chapter.sgml.diff"
 
 --- /usr/home/danger/doc/en_US.ISO8859-1/books/handbook/security/chapter.sgml.orig	Sat Feb 18 13:40:14 2006
 +++ /usr/home/danger/doc/en_US.ISO8859-1/books/handbook/security/chapter.sgml	Mon Mar  6 16:32:04 2006
 @@ -4244,8 +4244,11 @@
          <filename>rc.conf</filename> file for:</para>
        <screen>sshd_enable="YES"</screen>
        <para>This will load &man.sshd.8;, the daemon program for <application>OpenSSH</application>,
 -	the next time your system initializes.  Alternatively, you can
 -	simply run directly the <application>sshd</application> daemon by typing <command>sshd</command> on the command line.</para>
 +	the next time your system initializes.  Alternatively, it is
 +	possible to use <filename>/etc/rc.d/sshd</filename> &man.rc.8;
 +	script to start <application>OpenSSH</application>:</para>
 +
 +      <programlisting>/etc/rc.d/sshd start</programlisting>
      </sect2>
  
      <sect2>
 
 --oyUTqETQ0mS9luUI--
State-Changed-From-To: open->closed  
State-Changed-By: jcamou 
State-Changed-When: Mon Mar 6 19:26:50 UTC 2006 
State-Changed-Why:  
The documentation has been updated. 
Thanks for the submission. 


Responsible-Changed-From-To: freebsd-doc->jcamou  
Responsible-Changed-By: jcamou 
Responsible-Changed-When: Mon Mar 6 19:26:50 UTC 2006 
Responsible-Changed-Why:  
Set me as responsible. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94112 
>Unformatted:
