From 96c1c6a94904b9a408ecfa87e0f488acdc724422 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 29 Mar 2017 22:18:07 -0300 Subject: Adds SSH key rotation action --- kvmx-create | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvmx-create') diff --git a/kvmx-create b/kvmx-create index 7f9270d..204f2e0 100755 --- a/kvmx-create +++ b/kvmx-create @@ -248,7 +248,7 @@ function kvmx_create_custom { if [ "$ssh_custom" == "y" ]; then privkey="`dirname $image`/`basename $image .img`.key" pubkey="${privkey}.pub" - ssh-keygen -t rsa -b 4096 -f $privkey -N '' -C "user@`basename $image .img`" + $DIRNAME/kvmx-keygen $privkey "$user@`basename $image .img`" else pubkey="$DIRNAME/share/ssh/insecure_private_key.pub" fi -- cgit v1.2.3