in reply to Re: SSH by thread
in thread SSH by thread

Indeed. Probably lotsa globals here. If you need to run multiple parallel SSH connections, consider using processes, not threads.