use restrict keyword
This commit is contained in:
parent
43e85ec8e7
commit
bd8e6a6d98
2
shell.sh
2
shell.sh
|
@ -3,7 +3,7 @@
|
||||||
# shold be started from a separate account
|
# shold be started from a separate account
|
||||||
# access via ssh:
|
# access via ssh:
|
||||||
# cat .ssh/authorized_keys
|
# cat .ssh/authorized_keys
|
||||||
# command="/home/automation/chch-power/shell.sh",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAA...
|
# restrict,command="/home/automation/chch-power/shell.sh" ssh-rsa AAAA...
|
||||||
|
|
||||||
COMMAND_FILE=/tmp/command
|
COMMAND_FILE=/tmp/command
|
||||||
if [ ! -p "$COMMAND_FILE" ]; then
|
if [ ! -p "$COMMAND_FILE" ]; then
|
||||||
|
|
Loading…
Reference in New Issue