7 lines
138 B
Bash
7 lines
138 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
KEYS=$(find /etc/ssh -name 'ssh_host_*_key')
|
||
|
[ -z "$KEYS" ] && ssh-keygen -A >/dev/null 2>/dev/null
|
||
|
|
||
|
exec /usr/sbin/sshd -D -e
|