Re: [JSch-users] [JSCH-DEV] Issues in using RunCommand from Linux to AIX
Status: Alpha
Brought to you by:
ymnk
From: Heiner W. <Heiner.Westphal@Heiner-Westphal.de> - 2007-04-18 07:11:43
|
Hello Inder, are you using the exact same name to access the AIX box via ssh and jsch? The same error hit me once, when I used the server name via ssh and its IP via jsch. There was no known_host entry for the IP. Connecting via ssh and answering 'y' solved the issue. If this does not solve it, try experimenting with ssh -vvv, to see what authentications the server offers and come back to the list with that info. HTH, Heiner > Hi, > > I am trying to use RunCommand example class provided by JSCH > to execute a command on the remote node by supplying the user-name > and password, which results me in getting the following exception. > > com.jcraft.jsch.JSchException: Auth fail > at com.jcraft.jsch.Session.connect(Unknown Source) > at com.jcraft.jsch.Session.connect(Unknown Source) > > However when i try doing a ssh from the command line to the same remote > target > using the same credentials everything works fine. To cross-check my code > i tried > giving a Linux target and it works fine. Hence i am able to execute > commands > by giving the proper credentials on all kinds of targets except this AIX. > > Any pointer's of what might be going wrong could be helpful. Is it a > known issue > with AIX, or possibly some version mismatch happening for the ssh server > running on AIX. > > The ssh server version running on AIX is OpenSSH_3.4p1, SSH protocols > 1.5/2.0, OpenSSL 0x0090607f > > I would really appreciate any pointers on this one. > > -- Inder > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > JSch-users mailing list > JSc...@li... > https://lists.sourceforge.net/lists/listinfo/jsch-users |