+-From: "Pan, Chris" <CPan@...> --
|_Date: Thu, 11 Mar 2004 15:51:05 -0800 __________
|Hi everyone, I am trying to use public key authentication for my
|sftp. I use KeyGen.java from the example to generate the key
|pair, and then I use UserAuthPubKey.java from the example, but
|it fail to authenticate. Can anyone tell me how to configure my
|sftp server to use public key authentication method? We are
|using OpenSSH product which support SSH1 and SSH2.
I guess you have already added the content of a generated public-key(, which
has suffix '.pub') to '.ssh/authorized_keys' file in your home directory.
on remote host. How about its access permision?
$ chmod o-rwx ~/
$ chmod o-rwx ~/.ssh
$ chmod o-rwx ~/.ssh/authorized_keys
Are there any messages in '/var/log/messages' and '/var/log/secure'?
Get latest updates about Open Source Projects, Conferences and News.