From owner-freebsd-hackers@freebsd.org Thu Mar 12 14:35:30 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3F59F2625FF for ; Thu, 12 Mar 2020 14:35:30 +0000 (UTC) (envelope-from mail@osfux.nl) Received: from vm1982.osfux.nl (vm1982.osfux.nl [IPv6:2a03:5500:1724:55:79:99:187:212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48dWZm1YKJz489J for ; Thu, 12 Mar 2020 14:35:27 +0000 (UTC) (envelope-from mail@osfux.nl) Received: from vm1982.osfux.nl (localhost [127.0.0.1]) by vm1982.osfux.nl (Postfix) with ESMTP id 4FC912013E; Thu, 12 Mar 2020 15:35:16 +0100 (CET) X-Spam-Status: No, score=0.0 required=5.0 tests=none shortcircuit=no X-Spam-Checker-Version: SpamAssassin 3.4.3 Received: from [172.28.10.16] (engineering.quanza.net [91.208.87.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by vm1982.osfux.nl (Postfix) with ESMTPSA; Thu, 12 Mar 2020 15:35:16 +0100 (CET) Subject: Re: Allow to run SSHd in Installer (12.2 patch) To: Ben RUBSON , freebsd-hackers@freebsd.org References: <2352A2A0-999C-453F-92A1-D067E4C05712@gmx.com> <6DB159F2-99C2-46BE-AEC5-99FB7582FCF0@gmx.com> From: Ruben Message-ID: Date: Thu, 12 Mar 2020 15:35:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <6DB159F2-99C2-46BE-AEC5-99FB7582FCF0@gmx.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48dWZm1YKJz489J X-Spamd-Bar: - X-Spamd-Result: default: False [-1.87 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[osfux.nl:s=default]; NEURAL_HAM_MEDIUM(-0.11)[-0.114,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.24)[asn: 8315(1.18), country: NL(0.03)]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[osfux.nl:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[osfux.nl,reject]; FREEMAIL_TO(0.00)[gmx.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8315, ipnet:2a03:5500::/31, country:NL]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2020 14:35:30 -0000 Hi Ben, I'm not a FreeBSD developer (so not your targeted audience) but would very much like to see this land in a release! Kind regards, Ruben On 3/10/20 4:07 PM, Ben RUBSON wrote: >> On 2 Mar 2020, at 13:09, Ben RUBSON wrote: >> >> Hi, >> >> I've done some work to allow to connect to FreeBSD installer through SSH. >> It can be useful for example if we have specific tasks to perform before installation, such as disks configuration etc... >> Working through a SSH connection is much more convenient than in front of a console. >> FreeBSD installer can then also be used as a rescue disk. >> >> To achieve this, I've modified FreeBSD installer, so that after having installed SSHd, if performs following configuration modifications : >> - generate host keys into /var/ssh (as default /etc/ssh is not writable) ; >> - only allow keys authentication ; >> - allow root authentication ; >> - read authorized_keys file from /var/ssh (as default homedirs are not writable). >> >> SSHd can then be started thanks to the installer shell : service sshd start >> And a public key put into for example /var/ssh-keys/root/authorized_keys, thanks to fetch or whatever. >> >> Work is here : >> https://github.com/freebsd/freebsd/pull/156 >> Rather simple, and ready to be merged. >> >> This job is more than 2 years old, I would then really be glad if we could see this in 12.2 installation ISOs. >> It would prevent me from having to modify the new ISO files to implement this patch. > > Any thoughts ? :) > > Thank you very much ! > > Ben > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >