summaryrefslogtreecommitdiffstats
path: root/abs/core/runit/runitscripts/services/sshd/run
blob: 0dd16ef4a92a625302e76f67bf3117c4072c17fb (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
exec 2>&1

[ -f /etc/ssh/ssh_host_key ] || { /usr/bin/ssh-keygen -t rsa1 -N "" -f /etc/ssh/ssh_host_key >/dev/null; }
    [ -f /etc/ssh/ssh_host_rsa_key ] || { /usr/bin/ssh-keygen -t rsa -N "" -f /etc/ssh/ssh_host_rsa_key >/dev/null; }
    [ -f /etc/ssh/ssh_host_dsa_key ] || { /usr/bin/ssh-keygen -t dsa -N "" -f /etc/ssh/ssh_host_dsa_key >/dev/null; }

exec /usr/sbin/sshd -D >/dev/null 2>/dev/null