Skip to content

Commit 8a5c29d

Browse files
author
ql
committed
fix:the ssh port should not be constant
1 parent 3d1f40d commit 8a5c29d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gvm/connections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def _get_remote_host_key(self):
291291
"""Get the remote host key for ssh connection"""
292292
try:
293293
tmp_socket = socketlib.socket()
294-
tmp_socket.connect((self.hostname, 22))
294+
tmp_socket.connect((self.hostname, self.port))
295295
except OSError as e:
296296
raise GvmError(
297297
"Couldn't establish a connection to fetch the"

0 commit comments

Comments
 (0)