#if [ "$ssh_support" == "y" ]; then
if [ "$ssh_custom" == "y" ]; then
if [ ! -z "$ssh_custom_pubkey" ]; then
- pubkey="$sshdir/ssh/$hostname.key.pub"
+ pubkey="$sshdir/$hostname.key.pub"
if [ -e "$ssh_custom_pubkey" ]; then
cp $ssh_custom_pubkey $pubkey
echo $ssh_custom_pubkey > $pubkey
fi
else
- privkey="$sshdir/ssh/$hostname.key"
+ privkey="$sshdir/$hostname.key"
pubkey="${privkey}.pub"
__kvmx_ssh_keygen $privkey "$user@$hostname"
fi