0 votes
by (160 points)
edited

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

by (58.9k points)
edited

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.

by (160 points)
edited

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

1 Answer

+1 vote
by (148k points)
edited
 
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.

...