Browse Source

rc.conf control sshd

OPENBSD_2_4
deraadt 26 years ago
parent
commit
a28a282fd6
2 changed files with 4 additions and 3 deletions
  1. +2
    -1
      src/etc/rc.conf
  2. +2
    -2
      src/etc/rc.local

+ 2
- 1
src/etc/rc.conf View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: rc.conf,v 1.22 1998/06/03 17:12:05 millert Exp $
# $OpenBSD: rc.conf,v 1.23 1998/06/15 18:41:14 deraadt Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for 'normal' use: routed_flags="-q"
@ -34,6 +34,7 @@ portmap=YES # almost always needed
inetd=YES # almost always needed
lpd=NO # printing daemons
check_quotas=YES # NO may be desireable in some YP environments
sshd=YES # run sshd if it exists
# miscellaneous other flags
# only used if the appropriate server is marked YES above


+ 2
- 2
src/etc/rc.local View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.local,v 1.22 1998/04/07 16:32:55 deraadt Exp $
# $OpenBSD: rc.local,v 1.23 1998/06/15 18:41:12 deraadt Exp $
# site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode. For actions
@ -10,7 +10,7 @@
echo -n 'starting local daemons:'
if [ -x /usr/local/sbin/sshd ]; then
if [ X"${sshd}" == X"YES" -a -x /usr/local/sbin/sshd ]; then
echo -n ' sshd'; /usr/local/sbin/sshd
#echo -n ' sshd2022'; /usr/local/sbin/sshd -p 2022
fi


Loading…
Cancel
Save