Skip to content

Commit c0d5d7a

Browse files
committed
Added additional check for "host key not being cached" message
1 parent 1094046 commit c0d5d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remoteShark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def testConnection(self):
436436
printf('Successful connection to the remote host')
437437
return
438438

439-
if (re.search("The server's host key is not cached", err.decode())):
439+
if (re.search("The server's host key is not cached", err.decode()) or re.search("The host key is not cached for this server", err.decode())):
440440
printf("%s\n", err.decode())
441441
printf("\n\nThis utility will automatically add the host key in 5 seconds.\n")
442442
printf("Press Ctrl+C to abort... \n")

0 commit comments

Comments
 (0)