diff --git a/tsshbatch.py b/tsshbatch.py index 0893e40..49ba140 100755 --- a/tsshbatch.py +++ b/tsshbatch.py @@ -20,7 +20,7 @@ CMDINCL = PROGENV + "CMDS" HOSTINCL = PROGENV + "HOSTS" -CVSID = "$Id: tsshbatch.py,v 1.212 2014/12/10 15:24:46 tundra Exp $" +CVSID = "$Id: tsshbatch.py,v 1.213 2016/01/10 16:44:07 tundra Exp $" VERSION = CVSID.split()[2] CPRT = "(c)" PROGDATE = "2011-2014" @@ -339,7 +339,7 @@ ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) if KEYEXCHANGE: - ssh.connect(host, timeout=TIMEOUT) + ssh.connect(host, username=user, timeout=TIMEOUT) else: ssh.connect(host, username=user, password=pw, allow_agent=False, look_for_keys=False, timeout=TIMEOUT) @@ -429,7 +429,7 @@ ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) if KEYEXCHANGE: - ssh.connect(host, timeout=TIMEOUT) + ssh.connect(host, username=user, timeout=TIMEOUT) else: ssh.connect(host, username=user, password=pw, allow_agent=False, look_for_keys=False, timeout=TIMEOUT)