diff --git a/tsshbatch.py b/tsshbatch.py index 906a97d..d4f4182 100755 --- a/tsshbatch.py +++ b/tsshbatch.py @@ -20,7 +20,7 @@ CMDINCL = PROGENV + "CMDS" HOSTINCL = PROGENV + "HOSTS" -CVSID = "$Id: tsshbatch.py,v 1.187 2014/11/21 16:01:14 tundra Exp $" +CVSID = "$Id: tsshbatch.py,v 1.188 2014/11/25 23:14:48 tundra Exp $" VERSION = CVSID.split()[2] CPRT = "(c)" DATE = "2011-2014" @@ -268,7 +268,7 @@ if KEYEXCHANGE: ssh.connect(host, timeout=TIMEOUT) else: - ssh.connect(host, username=user, password=pw, timeout=TIMEOUT) + ssh.connect(host, username=user, password=pw, allow_agent=False, look_for_keys=False, timeout=TIMEOUT) sftp = ssh.open_sftp() @@ -335,7 +335,7 @@ ssh.connect(host, timeout=TIMEOUT) else: - ssh.connect(host, username=user, password=pw, timeout=TIMEOUT) + ssh.connect(host, username=user, password=pw, allow_agent=False, look_for_keys=False, timeout=TIMEOUT) PrintReport([host, CONSUCCESS])