One public key by user (sshd_config)
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 the
line in the sshd_confif file, then i restarted ssh.
When i try to push without to be root, i still get this error:
What i missed ?
Permission denied (publickey).
fatal: The remote end hung up unexpectedly