Kerberos -> Authentication through SSPI failed

0 votes
asked Sep 18, 2013 by iulia (160 points)
edited Jan 16, 2014

Hello,

I use the following code to connect to a Kerberos server (this code is inside a method that has the parameters:server, username, pwd, domain):

sshSession = new SshSession();
sshSession.Connect(server);
SshGssApiCredentials gssapiCredentials = new SshGssApiCredentials() { UserName = userName, Domain = domain, Password = pwd };
gssapiCredentials.SetMechanisms(SshGssApiMechanisms.KerberosV5, SshGssApiMechanisms.Ntlm);
gssapiCredentials.TargetName = server;
sshSession.Authenticate(gssapiCredentials);

but at the line "sshSession.Authenticate(gssapiCredentials);" it throws an exception: Authentication through SSPI failed.

Thanks very much in advance for your help! Iulia

commented Sep 18, 2013 by Tomas Knopp (58,890 points)
edited Sep 18, 2013

Hello,

as this exception is thrown at more places, please create the communication log using the LogWriter property as described in this article.

Then either post the log here, or send it to support@rebex.net and we will be able to help you.

commented Sep 18, 2013 by iulia (160 points)
edited Sep 18, 2013

Thanks. I've send to you the log result by email.

1 Answer

+1 vote
answered Sep 25, 2013 by Lukas Pokorny (102,210 points)
edited Jan 16, 2014
 
Best answer

This was caused by several incompatibilities between Rebex SSH and OpenSSH. It has been fixed in Rebex Terminal Emulation 2013 R3 / Rebex SFTP 2013 R3.

...