Results 1 to 6 of 6
Hello,
I come here cause i can't success to add one public key by user, to enable them to use their own git repo on the same server (actually, every ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-29-2012 #1Just Joined!
- Join Date
- Apr 2012
- Posts
- 3
One public key by user (sshd_config)
Hello,
I come here cause i can't success to add one public key by user, to enable them to use their own git repo on the same server (actually, every user log themself to root to use git).
So i generated others keys and i put it in their /var/www/user/.ssh/authorized_keys file.
I uncommented theline in the sshd_confif file, then i restarted ssh.Code:AuthorizedKeysFile %h/.ssh/authorized_keys
When i try to push without to be root, i still get this error:What i missed ?Code:Permission denied (publickey). fatal: The remote end hung up unexpectedly
Thanks !
- 04-29-2012 #2
Copy the user key into .ssh/authorized_keys of the machine they are trying to access.
- 04-29-2012 #3Just Joined!
- Join Date
- Apr 2012
- Posts
- 3
Hello,
That's what i did, i sent it on github.
- 04-30-2012 #4
Under what user name is the user logging in as and where did you place the key?
- 04-30-2012 #5Just Joined!
- Join Date
- Apr 2012
- Posts
- 3
Hello Lazydog,
I did another test, the only difference was i generated the rsa keys from the user account instead the root acccount this time and it's work fine !
Thanks for help !
- 05-01-2012 #6
That is the way you are supposed to do it.


Reply With Quote
