aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/sshserver.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/sshserver.pl b/tests/sshserver.pl
index b910fd9db..be0d0480c 100644
--- a/tests/sshserver.pl
+++ b/tests/sshserver.pl
@@ -76,6 +76,11 @@ if ($verbose) {
print STDERR "SFTP server plugin found at $sftp\n";
}
+if ($username eq "root") {
+ print "Will not run ssh daemon as root to mitigate security risks\n";
+ exit 1;
+}
+
if (! -e "curl_client_key.pub") {
if ($verbose) {
print STDERR "Generating host and client keys...\n";