[K12OSN] No luck with ssh key storing for users
gumprechtm at msln.net
Fri May 20 11:10:21 UTC 2005
On Fri, 2005-05-20 at 14:13 +0530, info wrote:
> Hello, Everyone
> please let me know which public key i need to copy in which directory??
> I have generated the keys as per the documents and local apps are
> working perfectly.
> Only thing is i have to enter password everytime.
If you have copied the *.pub key to the server and cat *.pub >> authorized_keys (2), Then
check the permissions on the ~.ssh directory and the auth files. Make
sure they are set to 400. What happens is you may have the keys proper,
but if the permissions are too permissive, ssh will not trust the key
> Which public key i need to copy in which file?
> please let me know the file names also.
When you generate the keys with ssh-keygen -t rsa , and use defaults with no pass phrase,
you will have a key pair of id_rsa and id_rsa.pub. The .pub file goes to the server and the
the other stays on the client. One way to get the public key to the
server is to scp (secure copy) it to the server into the /root/.ssh/ .
Then cat *.pub >> authorized_keys . Then cat *.pub >> authorized_keys2 .
*.pub is whatever you wanted to name the file when ssh-keygen was run.
You could name it "My_personal_rsa" if you wanted and it will create a
pair called "My_personal_rsa" and "My_personal_rsa.pub" . I'm sure
someone has a link to a better explanation, as always, I can not seem to
find the page I used, but it was from this list. man ssh will also help.
More information about the K12OSN