aff725c0f425ab5296dd28af08159161289c348b
[hdw-linux/hdw-linux.git] / packages / security / openssh / openssh.setup
1 setup_block()   {
2         useradd -u 1025 -c 'sshd server' sshd || true
3         echo "creating ssh host keys ..."
4         /usr/bin/ssh-keygen -t dsa -b 1024 \
5                 -f /etc/ssh/ssh_host_dsa_key -N ""
6         /usr/bin/ssh-keygen -t rsa -b 1024 \
7                 -f /etc/ssh/ssh_host_rsa_key -N ""
8         echo "done. "
9                 }
10
11 uninstall_block()       {
12         userdel sshd || true
13                         }