Re: [JSch-users] jsch sftp without password
Status: Alpha
Brought to you by:
ymnk
From: <ym...@jc...> - 2006-02-18 14:13:27
|
Hi, +-From: "karim aklouche" <kar...@gm...> -- |_Date: Sat, 18 Feb 2006 00:47:22 +0100 ______________ | |I'm in trouble and really running out of time so I would appreciate all the |help you could provide me with Please refer to examples/UserAuthPubKey.java . JSch jsch=new JSch(); //jsch.addIdentity("absolute path of private key"); jsch.addIdentity("/home/user1/.ssh/id_rsa"); Session session=jsch.getSession(user, host, 22); ... Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 4-1 OHMACHI 1-CHOME AOBA-KU, SENDAI, MIYAGI 980-0804 Japan. Tel +81-22-723-2150 +1-415-578-3454 Fax +81-22-224-8773 Skype callto://jcraft/ |