Currently I have purchased web hosting with ssh access.
I have created a git repository on it and if I set my public key in
~/.ssh/authorized_keys file, I have access to that repo, I can push/pull data, etc.
This solution allows access for every user that has his public key in
But there is one thing that I want to avoid. Every user can login to the server too and has access to whole ssh account.
Is it possible to create a blacklist of users' keys that will not have an access to ssh ?
I see it that way:
- user logs in to a git - ok, allow for every one
- user logs in to ssh account
~/.profilefile is hooked and called a custom script:
- check user's public key
- if public key is in
Is it possible in any way ?