aboutsummaryrefslogtreecommitdiffstats
path: root/roles/git/files/git-shell-commands/no-interactive-login.disabled
blob: 3be7efce0b49f015ac2cd2b345a95c0f951e87d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# ~/git-shell-commands/no-interactive-login
#
# Disable interactive logins, displaying a greeting instead.
# See git-shell(1)
#
# Remove/rename this script to allow interactive logins, e.g.,
# allow `su - git` to add SSH keys.
#
#
# Aaron LI
# 2017-06-18
#

cat <<_EOF_
Hi ${USER}!
You've successfully authenticated, but interactive shell
access is not provided.
Bye~
_EOF_

exit 128