support GSSAPIAuth back

GSSAPIAuthentication has not been supported
due to PreferredAuthentications trick ( 2bdba17a85 )
pull/4049/head
Keiichi Mori 11 years ago committed by Michael Scherer
parent ff203dda45
commit 17c39b94a3

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

Loading…
Cancel
Save