-
Notifications
You must be signed in to change notification settings - Fork 0
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
Give Access to host ssh server users for some projects #4
Comments
useradd -ou 1005 -g1000 username. |
git shell accepts the following commands after the -c option: git receive-pack |
INTERACTIVE USE If a ~/git-shell-commands directory is present, git shell can also be run interactively (with no arguments). If a help command is present in the git-shell-commands directory, it is run to provide the user with an overview of allowed actions. Then a "git> " prompt is presented at which one can enter any of the commands from the git-shell-commands directory, or exit to close the connection. Generally this mode is used as an administrative interface to allow users to list repositories they have access to, create, delete, or rename repositories, or change repository descriptions and permissions. If a no-interactive-login command exists, then it is run and the interactive shell is aborted. EXAMPLES $ chsh -s /usr/bin/git-shell |
Ausgeführtes Kommando am SSH-Server analysieren command="/bin/echo You invoked: $SSH_ORIGINAL_COMMAND" ssh-rsa AAAAB[..] :~$ ssh [email protected] tail /etc/passwd : :~/tmp$ rsync -avz test.txt [email protected]:/home/dailybackup :~$ cat ssh-command-log |
In some rare cases :) you want to share ssh access from host to gitlab here is how to do it
Create ssh user on host git-shell access
create host hooks that get refered from alone via gitlab as it links /hooks
create the ssh user with same uid gid for
The text was updated successfully, but these errors were encountered: