server/fickit-pkg/rsync/usr/bin/ssh.sh

7 lines
138 B
Bash
Raw Normal View History

2019-01-17 06:38:47 +00:00
#!/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