summaryrefslogtreecommitdiff
path: root/debvm-create
diff options
context:
space:
mode:
authorHelmut Grohne <helmutg@debian.org>2023-01-03 11:26:59 +0000
committerHelmut Grohne <helmutg@debian.org>2023-01-03 11:26:59 +0000
commit59f9267f6f884afc9b90d6040365176fb455f30c (patch)
tree7237842746cade76b3860b3782137283b94e6fc7 /debvm-create
parent84cc5e4258ce543e72d082565e167cf71a25f5cc (diff)
parent45d00c2d54d8466a52262b7491f4a18279e398e3 (diff)
downloaddebvm-59f9267f6f884afc9b90d6040365176fb455f30c.tar.gz
Merge branch 'ssh' into 'main'
some ssh related improvements See merge request helmutg/debvm!14
Diffstat (limited to 'debvm-create')
-rwxr-xr-xdebvm-create3
1 files changed, 2 insertions, 1 deletions
diff --git a/debvm-create b/debvm-create
index 3e25578..58094cc 100755
--- a/debvm-create
+++ b/debvm-create
@@ -42,6 +42,7 @@ By default, the hostname is B<testvm>.
Install the given ssh public key file into the virtual machine image for the root user.
This option also causes the ssh server to be installed.
By default, no key or server is installed.
+To connect to the vm, pass a port number to B<debvm-run> with the B<-s> option.
=item B<-m> I<mirror>, B<--mirror>=I<mirror>
@@ -297,7 +298,7 @@ set -- \
# add ssh key for root
if test -n "$SSHKEY"; then
set -- \
- '--customize-hook=mkdir -p "$1/root/.ssh"' \
+ '--customize-hook=mkdir -m700 -p "$1/root/.ssh"' \
"--customize-hook=upload $SSHKEY /root/.ssh/authorized_keys" \
"$@"
fi