Hi I am looking in to the jsch code . In JSch.java it uses private as well as
public key for the authentication. The api looks as below.
addIdentity(String name, byte[]prvkey, byte[]pubkey, byte[] passphrase).
My doubt : why does it use the public key in the client side?
After generating the keypair using "ssh-keygen -t rsa",
Public key is supposed to be copied in the remote machine(target host, to be
connected.) as .ssh/authorised_keys ,
private key needs to be in the source machine.
But as per the addIdentity() function , it reads both private and public key .
Is it not a issue ?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users