Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2020 15:35:22 +0100
From:      Ruben <mail@osfux.nl>
To:        Ben RUBSON <ben.rubson@gmx.com>, freebsd-hackers@freebsd.org
Subject:   Re: Allow to run SSHd in Installer (12.2 patch)
Message-ID:  <f9dac1b0-ec6a-3487-6a37-27d77245a60e@osfux.nl>
In-Reply-To: <6DB159F2-99C2-46BE-AEC5-99FB7582FCF0@gmx.com>
References:  <2352A2A0-999C-453F-92A1-D067E4C05712@gmx.com> <6DB159F2-99C2-46BE-AEC5-99FB7582FCF0@gmx.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ben.rubson@gmx.com> 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"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f9dac1b0-ec6a-3487-6a37-27d77245a60e>