Hi,
By using putty generator I generate a publicssh key and privatessh key and i copied and pasted the created publickey in the directory .ssh,while configured privatekey in putty terminal in client while im login in using private key im facing following error
default i had authorized_keys in .ssh/authorized_keys i faced lots problem so i changed the path as below
I also enabled
i followed the folowing step
1. Created a folder for public SSH keys
mkdir /etc/publicSSHkeys
2. Moved the authorized_keys file there
mv ~/.ssh/authorized_keys /etc/publicSSHkeys/
3. Modified sshd_config to the new location, change this…to
AuthorizedKeysFile .ssh/authorized_keys
to this:
AuthorizedKeysFile /etc/publicSSHkeys/authorized_keys
4. Then i just need to start the server
service sshd start
5. You’ll still need to make sure your public key is in /etc/publicSSHkeys/authorized_keys, and your SSH client (in my case Putty) is loading your private key.
chmod -R 777 /etc/publicSSHkeys
i can some pin point my problem where im making mistake ..
loginas:root
server refused our key
Access denied
root@xx.xx.xx.'s password:
i followed the below link for configuration
http://linux-sxs.org/networking/openssh.putty.html
Regards
arun