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

7 lines
138 B
Bash
Executable File

#!/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