This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from concurrent import futures | |
| import paramiko | |
| ssh = paramiko.SSHClient() | |
| def attempt_ssh_connection(ip, timeout=5): | |
| print('Attemp connection on {}'.format(ip)) | |
| try: | |
| ssh.connect(ip, username='pi', password='raspberry', timeout=timeout) |
NewerOlder