aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/sshserver.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sshserver.pl b/tests/sshserver.pl
index bcb2f1b3a..197e8b872 100644
--- a/tests/sshserver.pl
+++ b/tests/sshserver.pl
@@ -371,6 +371,9 @@ if((! -e $hstprvkeyf) || (! -s $hstprvkeyf) ||
logmsg 'Could not generate client key';
exit 1;
}
+ # Make sure that permissions are restricted so openssh doesn't complain
+ system "chmod 600 $hstprvkeyf";
+ system "chmod 600 $cliprvkeyf";
}