summaryrefslogtreecommitdiff
path: root/src/user-d.AuthorizedKeysCommand
blob: 6bf0ec95e4f5790f95506fc964d2ac7336b244a8 (plain)
1
2
3
4
5
6
7
#!/bin/sh
cmd=/etc/ssh/user-d.AnonymousForceCommand
[ -x "$cmd" ] || exit

key=$1
shift
printf 'restrict,pty,command="%s" %s\n' "$cmd $*" "$key"