aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
Diffstat (limited to 'kvmx-create')
-rwxr-xr-xkvmx-create3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmx-create b/kvmx-create
index abcec83..8b30e83 100755
--- a/kvmx-create
+++ b/kvmx-create
@@ -366,6 +366,9 @@ EOF
$APT_INSTALL openssh-server -y
kvmx_sudo_run chroot $WORK/ service ssh stop
+ # Fix hostname in keys
+ kvmx_sudo_run sed -i -e "s/root@.*$/root@$hostname.$domain/" $WORK/etc/ssh/*.pub
+
# Sudo
echo "Installing sudo..."
$APT_INSTALL sudo -y