Add ephemeral_sshd

This commit is contained in:
2025-10-16 18:44:05 +02:00
parent eee142460e
commit 09cfbfc969
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
User-local SSH server.
Remember to populate `authorized_keys`.
```shell
cd ~/.ssh/ephemeral_sshd/
ssh-keygen -t ed25519 -f ssh_host_ed25519_key -N ''
/usr/sbin/sshd -f sshd_config -D
```

View File

@@ -0,0 +1,15 @@
Port 2222
ListenAddress localhost
# Point to our generated host keys
HostKey ~/.ssh/ephemeral_sshd/ssh_host_ed25519_key
# Use standard public key authentication
AuthorizedKeysFile ~/.ssh/ephemeral_sshd/authorized_keys
UsePAM no
PidFile ~/.ssh/ephemeral_sshd/sshd.pid
# Disable less secure authentication methods
PasswordAuthentication no
ChallengeResponseAuthentication no