The NetBSD Project

CVS log for src/etc/rc.d/sshd

[BACK] Up to [cvs.netbsd.org] / src / etc / rc.d

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21 / (download) - annotate - [select for diffs], Mon Jul 25 03:04:23 2011 UTC (10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, netbsd-6-base, netbsd-6, HEAD
Changes since 1.20: +11 -1 lines
Diff to previous 1.20 (colored)

generate ecdsa key

Revision 1.20 / (download) - annotate - [select for diffs], Fri Aug 13 18:08:03 2004 UTC (7 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, mjf-devfs2-base2, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, mjf-devfs, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-premerge-20101231, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Add an _rc_subr_loaded variable, set to ":" by rc.subr.  Scripts can use this
for a speedup by doing:
$_rc_subr_loaded . /etc/rc.subr

Revision 1.19 / (download) - annotate - [select for diffs], Wed Feb 18 17:36:34 2004 UTC (8 years, 3 months ago) by jonb
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.18: +6 -4 lines
Diff to previous 1.18 (colored)

Add ssh_keygen_flags variable to rc.conf to allow users to set the
size of auto-generated keys if desired.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Apr 29 08:23:34 2002 UTC (10 years ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, fvdl_fs64_base
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Complete the conversion back to the OpenSSH default configuration files of
"/etc/ssh/ssh_config" (from "/etc/ssh/ssh.conf") for ssh(1) and other
userland tools, and "/etc/ssh/sshd_config (from "/etc/ssh/sshd.conf")
for sshd(8).

etc/postinstall will detect this, and if "fix" is given, rename the files.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Apr 29 05:55:06 2002 UTC (10 years ago) by lukem
Branch: MAIN
Changes since 1.16: +14 -18 lines
Diff to previous 1.16 (colored)

deprecate $sshd_conf_dir and hardcode /etc/ssh.
$sshd_conf_dir wasn't as flexible as liked (it didn't work for ssh(1),
host keys or known_hosts).

Revision 1.16 / (download) - annotate - [select for diffs], Fri Apr 19 23:13:44 2002 UTC (10 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Don't assume that $0 is this script.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Apr 19 23:12:26 2002 UTC (10 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.14: +16 -9 lines
Diff to previous 1.14 (colored)

Wrap long lines.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Mar 27 09:15:54 2002 UTC (10 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Set command_args to '-f ${sshd_conf_dir}/${name}.conf'.
This occurs before the first load_rc_config() so that it may be
overridden by the user, and appears in single quotes so the
variables don't get evaluated until the eval in run_rc_command().
Problem noted by Patrick Welche <prlw1@cam.ac.uk> in [bin/15912].

Revision 1.13 / (download) - annotate - [select for diffs], Sun Feb 24 12:50:09 2002 UTC (10 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.12: +15 -14 lines
Diff to previous 1.12 (colored)

Support alternate config dir for sshd conf file and keys (defaults to "/etc").
Based on [misc/12473] from Jim Bernard.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Apr 25 23:27:37 2001 UTC (11 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

be consistent with other scripts when temporarily setting umask to 022

Revision 1.11 / (download) - annotate - [select for diffs], Wed Apr 25 23:18:50 2001 UTC (11 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

set the umask to 022 (remembering the previous setting) for ssh_keygen()

Revision 1.5.2.6 / (download) - annotate - [select for diffs], Fri Mar 30 22:37:49 2001 UTC (11 years, 1 month ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.5.2.5: +3 -2 lines
Diff to previous 1.5.2.5 (colored) next main 1.6 (colored)

Pull up revision 1.10 (requested by itojun):
  Auto-generate SSH protocol version 2 RSA key.
  Use newer command syntax (``-t <type>'' instead of ``-d'').
(fix to previous)

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Fri Mar 30 22:36:34 2001 UTC (11 years, 1 month ago) by he
Branch: netbsd-1-5
Changes since 1.5.2.4: +13 -5 lines
Diff to previous 1.5.2.4 (colored)

Pull up revision 1.9 (requested by itojun):
  Auto-generate SSH protocol version 2 RSA key.
  Use newer command syntax (``-t <type>'' instead of ``-d'').

Revision 1.10 / (download) - annotate - [select for diffs], Mon Mar 26 22:32:39 2001 UTC (11 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

check existence of /etc/ssh_host_rsa_key too

Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 26 22:21:26 2001 UTC (11 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.8: +13 -5 lines
Diff to previous 1.8 (colored)

auto-generate SSH protocol version 2 RSA key.
use newer command line syntax for ssh-keygen (-t <type>, instead of -d)

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Mon Oct 2 01:10:34 2000 UTC (11 years, 7 months ago) by lukem
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.5.2.3: +1 -1 lines
Diff to previous 1.5.2.3 (colored)

pull up rev 1.8 (approved by thorpej):
	- always use $rcvar to determine the name of the var to checkyesno
	- fix force*

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Fri Sep 29 05:45:54 2000 UTC (11 years, 7 months ago) by thorpej
Branch: netbsd-1-5
Changes since 1.5.2.2: +16 -16 lines
Diff to previous 1.5.2.2 (colored)

Sync this with rev 1.8.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Sep 19 13:04:39 2000 UTC (11 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

- only perform the checkyesno on the variable named in $rcvar (rather than
  implicitly using $name if $rcvar isn't set), and always perform this check,
  even when using start_cmd (et al).
  this check is performed before the pidcmd
  is run, speeding up scripts that weren't going to be run anyway.
  this should speed up booting slow systems.

- take advantage of the above and remove
	start_precmd="checkyesno foo"
  in scripts that use start_cmd.

- explicitly set rcvar=foo in the rc.d/foo scripts which have an equivalent
  rc.conf entry

- fix `rcvar' and `restart' when $rcvar isn't set.
  these above changes fix PR [bin/11027].

- when doing `force*', ignore the return value of *_precmd.
  this fixes PR [bin/10781].

- rename what sysdb provides from `databases' to `sysdb', to reflect
  the name of the script.

- improve the comments in rc.subr

Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 10 22:49:43 2000 UTC (11 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

- sshd has a pid file, so take advantage of it
- support `reload' arg (using default of SIGHUP)

Revision 1.6 / (download) - annotate - [select for diffs], Thu Aug 10 01:41:09 2000 UTC (11 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.5: +12 -13 lines
Diff to previous 1.5 (colored)

- provide sshd not ssh
- don't start until after LOGIN (after NETWORK is way too early)
- KNF (as such :)

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Wed Aug 9 19:09:46 2000 UTC (11 years, 9 months ago) by lukem
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.5.2.1: +48 -0 lines
Diff to previous 1.5.2.1 (colored)

pull up the following
approved by: thorpej

	etc/rc.d/DAEMON		1.3
	etc/rc.d/LOGIN		1.3
	etc/rc.d/NETWORK	1.1
	etc/rc.d/SERVERS	1.2
	etc/rc.d/cron		1.4
	etc/rc.d/dhclient	1.6
	etc/rc.d/dmesg		1.4
	etc/rc.d/inetd		1.5
	etc/rc.d/lkm1		1.3
	etc/rc.d/lkm2		1.3
	etc/rc.d/lkm3		1.4
	etc/rc.d/motd		1.3
	etc/rc.d/mountcritlocal		1.3-1.4
	etc/rc.d/mountcritremote	1.3
	etc/rc.d/mountd		1.7
	etc/rc.d/network	1.12 1.14
	etc/rc.d/ntpdate	1.4
	etc/rc.d/ppp		1.3-1.4
	etc/rc.d/pwcheck	1.3
	etc/rc.d/rpcbind	1.4
	etc/rc.d/sshd		1.3-1.5
	etc/rc.d/swap1		1.5
	etc/rc.d/swap2		1.4
	etc/rc.d/sysdb		1.3-1.4
	etc/rc.d/syslogd	1.5-1.6
	etc/rc.d/systemfs	REMOVE
	etc/rc.d/virecover	1.3
	etc/rc.d/wscons		1.4
	etc/rc.d/xdm		1.5

summary:

* reword descriptions
* add '# KEYWORD: shutdown' to some of these scripts so that only they get run
  at shutdown time.  now, only scripts with the keyword `shutdown' will be
  run by /etc/rc.shutdown, which speeds up shutdown and makes it more robust
* add new dummy dependancy `NETWORK' to be REQUIREd by services which need
  networking to be operational before starting, and use as appropriate.
  NETWORK depends upon network and dhclient.
* move the guts of systemfs into mountcritlocal
* replace the dependancy on systemfs with mountcritremote, and remove the
  former.
* SERVERS now also depends upon ppp
* move recreating /var/run/utmp from mountcritlocal (where /var/run is
  purged but /usr/bin/install is not available) to sysdb.
  problem noted by Matthias Drochner.
* share the same load_rc_config between the lkm* scripts
* network: Don't warn that $hostname isn't set if the hostname is already set.
* network: reenable stop_cmd now that network doesn't get run at shutdown
* add sshd startup script
* use "load_rc_config swap" for swap1 and swap2
* syslog requires databases from sysdb which creates /var/run/utmp.

Should fix PRs:
    [install/9853] [bin/10002] [misc/10349] [port-i386/10633] [misc/10641]

Revision 1.5.2.1, Tue Aug 1 14:28:32 2000 UTC (11 years, 9 months ago) by lukem
Branch: netbsd-1-5
Changes since 1.5: +0 -48 lines
FILE REMOVED

file sshd was added on branch netbsd-1-5 on 2000-08-09 19:09:46 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Tue Aug 1 14:28:32 2000 UTC (11 years, 9 months ago) by jwise
Branch: MAIN
Branch point for: netbsd-1-5
Changes since 1.4: +4 -2 lines
Diff to previous 1.4 (colored)

Change name of precmd from start_precmd to sshd_precmd.  While it worked
fine as was, the result was the line `start_precmd=start_precmd' which
looked odd.  Pointed out by Bernd Ernesti.

While here, add NetBSD RCS Id.

BTW, to clarify, as people have asked:  this script does not support
pkgsrc/security/sshd -- that package comes with a perfectly fine rc script
which in addition to supporting /etc/rc.d can also be used with 1.4.X.

This script will not trivially work with the ssh package as it a.) calls
the ssh commands at the pathnames they will be installed at by usr.bin/ssh,
and b.) generates a DSA key as well as an RSA key.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jul 31 21:43:52 2000 UTC (11 years, 9 months ago) by jlam
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

Correct apparent past-o: RSA -> DSA

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jul 31 20:39:41 2000 UTC (11 years, 9 months ago) by jwise
Branch: MAIN
Changes since 1.2: +38 -9 lines
Diff to previous 1.2 (colored)

An sshd startup script for use with usr.bin/sshd.  Installation is conditional
on ${SSHDIST}, as with usr.bin/ssh itself.

This script includes a `keygen' target for regenerating RSA and DSA host keys,
and invokes this if these keys are not present when sshd is started up.

Revision 1.2, Mon Mar 13 04:04:07 2000 UTC (12 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.1: +1 -1 lines
FILE REMOVED

* replace daemon, login, servers with DAEMON, LOGIN, SERVERS
* remove sshd (it was from my private system)

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri Mar 10 11:53:24 2000 UTC (12 years, 2 months ago) by lukem
Branch: TNF
CVS Tags: rc-d-2000-03-10
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

rc.d scripts derived from /etc/rc

Revision 1.1 / (download) - annotate - [select for diffs], Fri Mar 10 11:53:24 2000 UTC (12 years, 2 months ago) by lukem
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>