tests: make sshserver less verbose

Only display top of key files in verbose mode.

Follow-up to 89f306ae40 #16781

Closes #17647
This commit is contained in:
Stefan Eissing 2025-06-17 08:53:32 +02:00 committed by Viktor Szakats
parent 6270b41f92
commit 3135ed0d84
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -428,13 +428,13 @@ if((! -e pp($hstprvkeyf)) || (! -s pp($hstprvkeyf)) ||
logmsg "Could not generate host key\n";
exit 1;
}
display_file_top(pp($hstprvkeyf));
display_file_top(pp($hstprvkeyf)) if($verbose);
logmsg "generating client keys...\n" if($verbose);
if(system "\"$sshkeygen\" -q -t rsa -f " . pp($cliprvkeyf) . " -C 'curl test client' -N ''" . $sshkeygenopt) {
logmsg "Could not generate client key\n";
exit 1;
}
display_file_top(pp($cliprvkeyf));
display_file_top(pp($cliprvkeyf)) if($verbose);
# Make sure that permissions are restricted so openssh doesn't complain
chmod 0600, pp($hstprvkeyf);
chmod 0600, pp($cliprvkeyf);