Article 5PED4 Read-only access to git-shell via SSH

Read-only access to git-shell via SSH

by
Turbocapitalist
from LinuxQuestions.org on (#5PED4)
I've got a system account which has its login shell set to /usr/bin/git-shell and that works well for read-write access to git. What I am looking for is a way to add an additional SSH key with a forced command such that "clone" is the only option and it fires automatically if that key is used.
Addding other programs or services to that server are not an option this time. How can I provide read-only access like this with just git-shell in ~/.ssh/authorized_keys with command="..." ?

Again, the login shell is git-shell and I am looking for a way to use that with an SSH forced command.latest?d=yIl2AUoC8zA latest?i=g-HO-Alr9S8:Sd8Yusv-2cI:F7zBnMy latest?i=g-HO-Alr9S8:Sd8Yusv-2cI:V_sGLiP latest?d=qj6IDK7rITs latest?i=g-HO-Alr9S8:Sd8Yusv-2cI:gIN9vFwg-HO-Alr9S8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments