Fuchsia builds that include sshd
start a program called listen
that is similar in nature to inetd
from other platforms, in that listen
takes the responsibility to listen on a socket and spawn programs when connections are made. listen
is configured to spawn sshd
when it receives a connection on port 22 over either IPv4 or IPv6.
The sshd is configured such that it expects a username of fuchsia
.
There is a minimal program called hostkeygen
that is also run on startup, that will create a host private key file in /data/ssh/
if none is already present.
User keys are configured and managed by using ffx. See SSH keys for details.
For development usage, the authorized public keys are added when flashing or starting the emulator via ffx.
-N
typically used to background a connection does not currently work. The workaround is to run a long running program such as cat
.ignore_valid_after
configuration option to ignore the valid_after
date check when authenticating via certificate. This is used during development to connect to devices that do not have a synchronized time source. See fxr/302848 for details.The clients are built but don't work yet.
To update Fuchsia's fork to a new version of openssh-portable perform the following steps: