Skip to content

Commit c389181

Browse files
committed
Fix bug: SSH module didn't send identification string while checking if remote host is avilable (fixes bit-team#1030)
1 parent f7f28b5 commit c389181

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Back In Time
22

3+
Version 1.3.0
4+
* Fix bug: SSH module didn't send identification string while checking if remote host is avilable (https://github.com/bit-team/backintime/issues/1030)
5+
36
Version 1.2.0
47
* Fix bug: Exit code is linked to the wrong status message (https://github.com/bit-team/backintime/issues/906)
58
* minor changes to allow running BiT inside Docker (https://github.com/bit-team/backintime/pull/959)

common/sshtools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,13 @@ def checkPingHost(self):
492492
if not self.config.sshCheckPingHost(self.profile_id):
493493
return
494494
logger.debug('Check ping host', self)
495+
versionString = 'SSH-2.0-backintime_{}\r\n'.format(self.config.VERSION).encode()
495496
count = 0
496497
while count < 5:
497498
try:
498499
with socket.create_connection((self.host, self.port), 2.0) as s:
499500
result = s.connect_ex(s.getpeername())
501+
s.sendall(versionString)
500502
except:
501503
result = -1
502504
if result == 0:

0 commit comments

Comments
 (0)