Add ephemeral_sshd
This commit is contained in:
9
.ssh/ephemeral_sshd/README.md
Normal file
9
.ssh/ephemeral_sshd/README.md
Normal 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
|
||||
```
|
||||
15
.ssh/ephemeral_sshd/sshd_config
Normal file
15
.ssh/ephemeral_sshd/sshd_config
Normal 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
|
||||
Reference in New Issue
Block a user