mirror of
https://github.com/ThunixdotNet/www.git
synced 2026-11-06 10:35:39 +00:00
Check SSH public key format
This commit is contained in:
1 parent
bc6c6d735b
commit
d720fd3758
1 file changed
+5
@@ -35,6 +35,11 @@ if ( $tv == "tildeverse" )
|
|||||||
if($retval == 0)
|
if($retval == 0)
|
||||||
$success = 'success3';
|
$success = 'success3';
|
||||||
|
|
||||||
|
// Check SSH public key format:
|
||||||
|
exec("echo $pubkey | ssh-keygen -l -f - 2>&1", $null, $retval);
|
||||||
|
if($retval != 0)
|
||||||
|
$success = 'success1';
|
||||||
|
|
||||||
if ( $success == "success2" )
|
if ( $success == "success2" )
|
||||||
mail($destination_addr, $subject, $mailbody, $from);
|
mail($destination_addr, $subject, $mailbody, $from);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user