This might just be that I don't have a proper setting, but I think I've 
exhausted all the obvious data/examples out there and so here I am.

I'm on an embedded system that reports the following security providers:

FINE: Security provider found: gnu.java.security.provider.Gnu: name=GNU 
version=1.0
FINE: Security provider found: gnu.javax.crypto.jce.GnuCrypto: name=GNU-CRYPTO 
version=2.1
FINE: Security provider found: gnu.javax.crypto.jce.GnuSasl: name=GNU-SASL 
version=2.1
FINE: Security provider found: gnu.javax.net.ssl.provider.Jessie: name=Jessie 
version=2.0
FINE: Security provider found: gnu.javax.security.auth.callback.GnuCallbacks: 
name=GNU-CALLBACKS version=2.1

And I'm trying to SSH to 127.0.0.1 with loading the id_rsa file which allows me 
to, via command-line, ssh to localhost without an interactive challenge.  Code 
looks like:

    JSch jsch = new JSch();
    sshSession = jsch.getSession("root", router_ip, 22);
    sshSession.setConfig("StrictHostKeyChecking", "no");
    jsch.addIdentity("/root/.ssh/id_rsa");
    sshSession.connect(10 * 1000);   // making a connection to the host (10s 
timeout)
    sshChannel = (ChannelShell)sshSession.openChannel("shell");

And getting this error:

[com.jcraft.jsch.JSchException]: 'Auth fail'

(tried turning up logging but must be the wrong logging type or something... 
info on that appreciated, don't see in what docs are provided...)

Any help much appreciated.


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to