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

Commit eb653b8

Browse files
authored
Merge pull request #430 from jinankjain/fix429
fixes #429: Add the missing port argument to ssh_keyscan
2 parents b3a7433 + a07bebe commit eb653b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ssh_scan/scan_engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def scan_target(socket, opts)
124124

125125
begin
126126
Timeout::timeout(timeout) {
127-
stdin, stdout, stderr, wait_thr = Open3.popen3('ssh-keyscan', '-t', 'rsa,dsa', target)
127+
stdin, stdout, stderr, wait_thr = Open3.popen3('ssh-keyscan', '-t', 'rsa,dsa', '-p', port.to_s, target)
128128
output = stdout.gets(nil)
129129
stdout.close
130130
stderr.gets(nil)

0 commit comments

Comments
 (0)