|
|
@ -88,7 +88,7 @@ class Connection(object):
|
|
|
|
"-o", "PubkeyAuthentication=no"]
|
|
|
|
"-o", "PubkeyAuthentication=no"]
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
self.common_args += ["-o", "KbdInteractiveAuthentication=no",
|
|
|
|
self.common_args += ["-o", "KbdInteractiveAuthentication=no",
|
|
|
|
"-o", "PreferredAuthentications=hostbased,publickey",
|
|
|
|
"-o", "PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey",
|
|
|
|
"-o", "PasswordAuthentication=no"]
|
|
|
|
"-o", "PasswordAuthentication=no"]
|
|
|
|
if self.user != pwd.getpwuid(os.geteuid())[0]:
|
|
|
|
if self.user != pwd.getpwuid(os.geteuid())[0]:
|
|
|
|
self.common_args += ["-o", "User="+self.user]
|
|
|
|
self.common_args += ["-o", "User="+self.user]
|
|
|
|