Hello all, 

i try to establish an ssh Connection on a remote maschine
there is the rsa key. 
my code looks like this 

    try{
              JSch jsch=new JSch();

              String passphrase = "way/to/the/rsa_id"; 
                jsch.addIdentity(passphrase );

              String user="root";
              String host="10.0.0.104"; 

              Session session=jsch.getSession(user, host, 22);

              // username and passphrase will be given via UserInfo interface.
              UserInfo ui=new MyUserInfo(null, user, "");
              session.setUserInfo(ui);
              
                try {
                session.connect();   // making connection with timeout.
            }  catch (JSchException ex)
            {
                System.out.println("sshConnection : " + ex.getMessage());
            }
                      
              Channel channel=session.openChannel("shell");

              channel.setInputStream(System.in);
              channel.setOutputStream(System.out);

              channel.connect();
            }
            catch(Exception e){
              System.out.println(e);
            }

This is from the sch examples. But the output is

java.security.NoSuchAlgorithmException: DESede/CBC/NoPadding: DESede
sshConnection : java.security.NoSuchAlgorithmException: HmacMD5

I use this code from eclipse 
While Connecting , a Warning with 
The authenticy of host 10.0.0.104 can't be established. RSA key fingerprint is 
....
will be shown 


What i am missing? Any hints

thanks c~

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to