Fix check_ssh_key
This commit is contained in:
parent
62550a59af
commit
e492b3f67e
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ sub check_key($)
|
|||
{
|
||||
my $filename = shift;
|
||||
# Call ssh-keygen
|
||||
if (`ssh-keygen -l -f $filename 2> /dev/null` =~ /^([0-9]+) [0-9a-f:]+ [a-zA-Z0-9\/_-]+ \(([A-Z]+)\)$/)
|
||||
if (`ssh-keygen -l -f $filename 2> /dev/null` =~ /^([0-9]+) +[0-9a-f:]+ +.+ +\(([A-Z]+)\)$/)
|
||||
{
|
||||
log INFO, "Receive valid key: type $2, size $1";
|
||||
if ($2 eq "RSA") {
|
||||
|
|
Reference in a new issue