Update to newer sshd (the host key is the same as before, it already

was a rsa key). From Harold Gutch.
This commit is contained in:
martin 2019-08-14 12:08:27 +00:00
parent 5dad262c9e
commit 3d3e06b3da
4 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2018/04/08 15:48:39 mlelstv Exp $
# $NetBSD: Makefile,v 1.18 2019/08/14 12:08:27 martin Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@ -25,7 +25,7 @@ IMAGEENDIAN= be
.endif
MAKEDEVTARGETS= ramdisk
IMAGEDEPENDS= ${CRUNCHBIN} \
dot.profile master.passwd sshd_config ssh_host_dsa_key \
dot.profile master.passwd sshd_config ssh_host_rsa_key \
${NETBSDSRCDIR}/etc/group \
${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
${DISTRIBDIR}/common/services

View File

@ -1,4 +1,4 @@
# $NetBSD: list,v 1.1 2013/03/19 22:16:53 garbled Exp $
# $NetBSD: list,v 1.2 2019/08/14 12:08:27 martin Exp $
SRCDIRS bin sbin external/bsd/less/bin crypto/external/bsd/openssh/bin/sshd usr.bin usr.sbin
@ -88,4 +88,4 @@ COPY ${DISTRIBDIR}/common/services etc/services
COPY ${CURDIR}/dot.profile .profile
COPY ${CURDIR}/inst.profile inst/.profile
COPY ${CURDIR}/sshd_config etc/ssh/sshd_config
COPY ${CURDIR}/ssh_host_dsa_key etc/ssh/ssh_host_dsa_key 600
COPY ${CURDIR}/ssh_host_rsa_key etc/ssh/ssh_host_rsa_key 600

View File

@ -1,4 +1,4 @@
# $NetBSD: sshd_config,v 1.1 2013/03/19 22:16:53 garbled Exp $
# $NetBSD: sshd_config,v 1.2 2019/08/14 12:08:27 martin Exp $
# Special cut-down sshd_config for sshramdisk
# Tim Rightnour <garbled@NetBSD.org>
@ -8,7 +8,7 @@
#ListenAddress 0.0.0.0
#ListenAddress ::
#Protocol 2
#HostKey /etc/ssh/ssh_host_dsa_key
#HostKey /etc/ssh/ssh_host_rsa_key
LoginGraceTime 600
# needed because sysinst is uid 0
PermitRootLogin yes
@ -16,5 +16,4 @@ AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication yes
# just in case
PermitEmptyPasswords yes
UsePrivilegeSeparation sandbox
AllowUsers pi sysinst