Find us on facebook

Jan 31, 2018

Restrict ssh to git

 cat /etc/shells
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/usr/bin/tmux
/usr/bin/screen
 
$ which git-shell
/usr/bin/git-shell
 
$ sudo nano /etc/shells (add  /usr/bin/git-shell)
$ sudo chsh git -s /usr/bin/git-shell

No comments:

Post a Comment