Bug 228863 - [installation] Allow SSH remote connection to FreeBSD Installer
Summary: [installation] Allow SSH remote connection to FreeBSD Installer
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-sysinstall mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2018-06-10 10:55 UTC by Ben RUBSON
Modified: 2018-06-10 23:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben RUBSON 2018-06-10 10:55:26 UTC
Hi,

Would be nice to be able to launch SSH server from the FreeBSD Installer.

There are several occasions during the installation process where we can switch to a shell for manual operations.
Unfortunately, through a console, it's sometimes painful for example to properly prepare disks, even more to repair things (disks, zpools or whatever) after a crash etc...
One could then like to start SSH daemon to work easier through a remote connection.

Unfortunately, SSH daemon won't start as /etc/ssh/ssh_host_* files don't exist, and can't be generated as the FS is read only. In addition passwords can't be set / SSH configuration can't be modified for the same reason.

Could we then, into the installation ISOs :
- to add default "/etc/ssh/ssh_host_*" files ;
- or to modify SSH & rc script configurations so that they are generated into /tmp ?

We would also need a user with a shell and a password, and allow it to switch to root.
Or set/generate a default root password, and set SSH config "PermitRootLogin yes".

Thank you very much !

Best regards,

Ben
Comment 1 Ben RUBSON 2018-06-10 11:55:27 UTC
See https://github.com/freebsd/freebsd/pull/156 for a fix !