Created Git User, moved Forgejo source code into Git user's home directory and changed the directory and file permissions for the Git user

This commit is contained in:
Mert Gör ☭ 2024-05-15 02:37:00 +03:00
parent b62f8dac2a
commit b55d067653
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
1 changed files with 17 additions and 1 deletions

View File

@ -37,4 +37,20 @@ now this command/ssh connection works !
ssh debian
```
happy hacking !
There was another issue that we can not clone the repository via ssh while we connect to virtual machine/remote server via ssh.
To solve this Forgejo clone/push issue I did :
```
adduser --system --shell /bin/bash --gecos 'Git Version Control' \
--group --disabled-password --home /home/git git
```
And then I moved forgejo source code into ```git``` user and changed the directory and file permissions for the ```git``` user.
# Conclusion
Now I can ssh into the remote server and clone and push the repositories like I did before with GitHub, GitLab, SourceHut(sr.ht), git.vern.cc, git.disroot.org and Codeberg...
**happy hacking !**