SSH: Authentication not supported

0 votes
asked Dec 7, 2011 by lackote (300 points)
edited Dec 13, 2011

Hello, I have problems trying to login at a unix server using LDAP...

I can login without problems in other unix systems withc clien.login(user, passwd)

But this one has LDAP and I can't log in...

any advice?

thank you!

commented Dec 7, 2011 by Lukas Pokorny (100,670 points)
edited Dec 7, 2011

Hello, are you able to log to that server in using any third party client such as PuTTY (SSH Shell) or PSFTP (SFTP)? (Both are available at http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)

4 Answers

0 votes
answered Dec 8, 2011 by lackote (300 points)
edited Dec 9, 2011

I don't know if its because of LDAP or because it is an AIX unix system, and befere there was a HPUX Unix and maybe credentials ar

commented Dec 9, 2011 by Lukas Pokorny (100,670 points)
edited Dec 9, 2011

Looks like a part of your text is missing. Have you tried connecting with PuTTY, PSFTP or other non-Rebex app?

0 votes
answered Dec 9, 2011 by lackote (300 points)
edited Dec 9, 2011

yes, I have no problems connecting with PuTTY

0 votes
answered Dec 12, 2011 by Lukas Pokorny (100,670 points)
edited Dec 12, 2011

Please try connecting using "keyboard-interactive" authentication method:

// Create an instance of SshParameters class 
// to specify desired arguments. 
SshParameters par = new SshParameters();

// Force "keyboard-interactive" authentication method.
par.AuthenticationMethods = SshAuthenticationMethod.KeyboardInteractive;

// Create an instance of Ssh object
Ssh client = new Ssh();

// Connect to the server. 
// The third argument refers to the parameters class. 
client.Connect(serverName, 22, par);

// Authenicate.
client.Login(userName, password);

Does this make any difference?

0 votes
answered Dec 12, 2011 by lackote (300 points)
edited Dec 13, 2011

thank you, it works! now I'm having this other problem (http://forum.rebex.net/questions/2224/ssh-the-channel-has-been-closed)

commented Dec 13, 2011 by Lukas Pokorny (100,670 points)
edited Dec 13, 2011

This is strange, but not the first time we encountered this problem. It looks like there is some bug in "password" authentication method implementation. PuTTY uses "keyboard-interactive" by default and only uses "password" if it's not available, we do it the other way around.

...