Hi,

   +-From: Jim B <[email protected]> ---------------
   |_Date: Wed, 25 Mar 2009 23:56:03 +0000 (UTC) __
   |
   |By default JSch is set to 
   |  config.put("server_host_key", "ssh-rsa,ssh-dss");
   |I'm operating under the assumption that JSch will try rsa and 
   |if that fails then try dss. Is this assumption correct?

It is not correct.  
If the remote sshd supports "ssh-rsa", "ssh-rsa" will be usend.
If not, "ssh-dss" will be.

   ..
   |Should I be parsing the known_hosts file to manually set the 
   |server_hosts_key in JSch for a host that may use ssh-rsa or ssh-dss?

You don't have to parse it by yourself. Please refer to the beginning of
  http://www.jcraft.com/jsch/examples/KnownHosts.java


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Fax +81-22-224-8773
Skype callto://jcraft/

------------------------------------------------------------------------------
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to