mirror of
https://review.haiku-os.org/buildtools
synced 2025-01-21 21:54:34 +01:00
18 lines
402 B
Bash
18 lines
402 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# generate SSH host keys
|
||
|
|
||
|
hostKeyDir=/boot/home/config/etc
|
||
|
|
||
|
if [ ! -f "$hostKeyDir/ssh_host_key" ] ; then
|
||
|
ssh-keygen -t rsa1 -f "$hostKeyDir/ssh_host_key" -N ""
|
||
|
fi
|
||
|
|
||
|
if [ ! -f "$hostKeyDir/ssh_host_dsa_key" ] ; then
|
||
|
ssh-keygen -t dsa -f "$hostKeyDir/ssh_host_dsa_key" -N ""
|
||
|
fi
|
||
|
|
||
|
if [ ! -f "$hostKeyDir/ssh_host_rsa_key" ] ; then
|
||
|
ssh-keygen -t rsa -f "$hostKeyDir/ssh_host_rsa_key" -N ""
|
||
|
fi
|