Bug 133890 - sshd(8): add multiple profiles to the rc.d script
Summary: sshd(8): add multiple profiles to the rc.d script
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 7.2-PRERELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-21 12:00 UTC by Eygene Ryabinkin
Modified: 2024-10-28 21:41 UTC (History)
1 user (show)

See Also:


Attachments
sshd-add-multiprofile-rc.d-extensions.diff (8.85 KB, patch)
2009-04-21 12:00 UTC, Eygene Ryabinkin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eygene Ryabinkin 2009-04-21 12:00:06 UTC
Sometimes one wants to spawn multiple SSH daemons on one machine and
specify very different configuration files and/or keys for them.  This
isn't doable with the current rc.d script and sshd_config, so I had
extended /etc/rc.d/sshd to handle multiple profiles.

My own case was to get the second, world-accessible, SSH instance
listening to the second interface; it allows a very different set
of users (in respect to the system's SSH) to log in.

Fix: The following patch adds multiprofile extensions and documentation for
them.  I don't like to modify sshd(8) page, but I just couldn't think of
another place to add the information -- rc.conf(5) shouldn't be polluted
with SSH-specific stuff.

The patch was tested on my server and everything goes more-or-less
smoothly already for week.
How-To-Repeat: 
Try to get running two SSH instances with /etc/rc.d/sshd.
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2009-04-21 12:20:26 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-rc

Over to rc.d maintainers
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:11 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:35:04 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>