Re: [JSch-users] jsch sftp without password
Status: Alpha
Brought to you by:
ymnk
From: Heiner W. <Heiner.Westphal@Heiner-Westphal.de> - 2006-02-21 08:07:13
|
Vijay and Karim, to be precise neither group nor others may have write access to the authorized_key file, else opensshd will refuse to use it. I.e. the permissions may be anywhere between -rw-r--r-- and -r--------. Don't know the constraints of freeSSHd and friends. I do have write access (0600) to my .ssh/authorized_keys2 and it works like a charm. Have fun, Heiner Vijay Shah schrieb: > Hey Karim, > > Make sure the authorized_keys file has just read permission only for > user/group and others. Otherwise the public key auth does not work. > > Regards > Vijay > > > On 2/18/06, Atsuhiko Yamanaka <ym...@jc...> wrote: >> 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/ >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >> _______________________________________________ >> JSch-users mailing list >> JSc...@li... >> https://lists.sourceforge.net/lists/listinfo/jsch-users >> > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > _______________________________________________ > JSch-users mailing list > JSc...@li... > https://lists.sourceforge.net/lists/listinfo/jsch-users > -- Heiner Westphal Mail : wes...@he... Peter-Michely Str. 18 Tel. : +49-(0)681-5847703 D-66117 Saarbrücken Mobil: +49-(0)177-5752640 |