aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-29 22:18:07 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-29 22:18:07 -0300
commit96c1c6a94904b9a408ecfa87e0f488acdc724422 (patch)
tree20a8639bb510ae04c5965c7b9418f4cad015f677 /kvmx-create
parent3e675f63676e2a0a7e3e9b787d38a926685c9a04 (diff)
downloadkvmx-96c1c6a94904b9a408ecfa87e0f488acdc724422.tar.gz
kvmx-96c1c6a94904b9a408ecfa87e0f488acdc724422.tar.bz2
Adds SSH key rotation action
Diffstat (limited to 'kvmx-create')
-rwxr-xr-xkvmx-create2
1 files changed, 1 insertions, 1 deletions
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