1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 20:47:46 +00:00

Ports: Make openssh server not crash during startup

Before, the openssh server tried to chroot. The startup always aborted
after that, as our chroot stub currently simply returns -1. Luckily we
can use unveil instead.

Furthermore the missing ssh_host_ed25519_key also prevented the server
from successfully starting.

The previous ReadMe.md entry about socketpair missing was already
resolved by #6705.
This commit is contained in:
Patrick Meyer 2022-04-29 19:08:49 +00:00 committed by Brian Gianforcaro
parent 9f3f3b0864
commit 6020364476
3 changed files with 64 additions and 1 deletions

View file

@ -5,4 +5,18 @@
- Assumes SSH2.0 for now.
- Cannot determine compatibility flags.
This means there may be some weird bugs when connecting to certain SSH implementations.
- SSHD does not work as it requires socketpair. It will start, but will crash on connection.
# Autostart SSHD
Add something like this to your sync-local.sh
```
cat <<EOF >> mnt/etc/SystemServer.ini
[SSHServer]
Executable=/usr/local/sbin/sshd
Arguments=-D
KeepAlive=1
SystemModes=text,graphical
EOF
```