Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self-hosted git tutorial missing step #259

Open
ckp95 opened this issue Feb 1, 2023 · 1 comment
Open

self-hosted git tutorial missing step #259

ckp95 opened this issue Feb 1, 2023 · 1 comment

Comments

@ckp95
Copy link

ckp95 commented Feb 1, 2023

I tried to follow the tutorial but I wasn't able to log in as the git user over ssh. This is after following the instructions on the ssh keys page to disable password logins.

I would get the errors:

$ ssh 'git@<my-site>'
git@<my-site>: Permission denied (publickey).

On the VPS the /var/log/auth.log showed login attempts rejected with the message User git not allowed because account is locked

I managed to fix this problem by issuing the command passwd -d git after the useradd -m git -d /var/git -s /bin/bash command, as per this post.

After doing this I was able to push to the git repo from my machine.

@Jocomol
Copy link
Contributor

Jocomol commented Apr 24, 2023

Feel free to document your findings in the given article and create a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants