Hi,
I am using Jsch and so far everything worked great for my application. Now
that i have setup key chain and trying to log on to my server without
password it is asking for passphrase which is already stored using ssh key
agent. I am using Mac 10.5. When i open a terminal and ssh to my server it
directly logs on to server without asking me for the passphrase. But when i
run my application which uses jsch it always prompts for the passphrase.
This is my code.
JSch jsch = new JSch();
jsch.addIdentity(~/.ssh/id_rsa);
session = jsch.getSession("me", hostname, port);
session.setPassword("pass");
localUserInfo lui = new localUserInfo();
session.setUserInfo(lui);
session.connect();
How i can i make jsch read passphrase from keychain or cache the key so as
to avoid repeated passphrase prompts.
Thank You!
-- Jisamma
------------------------------------------------------------------------------
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