smscon is not able to establish the reverse tunnel with public key authorization.
if StatusSSH() == False: if StatusRemoteHost() == False: logging.error('ssh ping failure to "%s". Will try connect anyway' % REMOTEHOST) StartSSH() return else: StartSSH() return else: logging.info('ssh connection is already active') return