aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
Diffstat (limited to 'kvmx-create')
-rwxr-xr-xkvmx-create3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmx-create b/kvmx-create
index 204f2e0..fed0292 100755
--- a/kvmx-create
+++ b/kvmx-create
@@ -246,8 +246,9 @@ function kvmx_create_custom {
if [ "$ssh_support" == "y" ];
if [ "$ssh_custom" == "y" ]; then
- privkey="`dirname $image`/`basename $image .img`.key"
+ privkey="`dirname $image`/ssh/`basename $image .img`.key"
pubkey="${privkey}.pub"
+ mkdir -p "`dirname $privkey`"
$DIRNAME/kvmx-keygen $privkey "$user@`basename $image .img`"
else
pubkey="$DIRNAME/share/ssh/insecure_private_key.pub"