Some minor mistakes in SSHFP call
Removed extra dot, used '-f <filename>' to specify key filename
This commit is contained in:
parent
7b29ab82b1
commit
c946a155b7
|
@ -220,9 +220,9 @@ end
|
|||
|
||||
def host_sshfp(keys)
|
||||
keys.flat_map { |keyfile|
|
||||
`ssh-keygen -r hostname #{keyfile}`.split("\n")
|
||||
`ssh-keygen -r hostname -f #{keyfile}`.split("\n")
|
||||
}.map { |fp|
|
||||
fp..match(/[0-9] [0-9] [a-fA-F0-9]{32,64}$/)[0]
|
||||
fp.match(/[0-9] [0-9] [a-fA-F0-9]{32,64}$/)[0]
|
||||
}.compact
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue