Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Merge 79660cc into a4104d8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Claudius committed Jan 17, 2019
2 parents a4104d8 + 79660cc commit c246cc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ssh_scan/scan_engine.rb
Expand Up @@ -126,7 +126,9 @@ def scan_target(socket, opts)
cmd = ['ssh-keyscan', '-t', 'rsa,dsa', '-p', port.to_s, target].join(" ")

Utils::Subprocess.new(cmd) do |stdout, stderr, thread|
output += stdout
if stdout
output += stdout
end
end

host_keys = output.split
Expand Down

0 comments on commit c246cc8

Please sign in to comment.