From 1ae090789bc3f57c8d0dfce25fb19f9ac8edbe8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 8 Dec 2017 10:12:55 +0100 Subject: [PATCH] Deploy: added PermitLocalCommand=no to SSH command I'm using a LocalCommand invocation to change the terminal colours when I SSH into a production server; this shouldn't be done by the deploy script. --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index cb41d75..ca7c007 100755 --- a/deploy.sh +++ b/deploy.sh @@ -27,7 +27,7 @@ CELERY_WORKER_DOCKER_NAME="celery_worker" CELERY_BEAT_DOCKER_NAME="celery_beat" REMOTE_ROOT="/data/git/${PROJECT_NAME}" -SSH="ssh -o ClearAllForwardings=yes ${DEPLOYHOST}" +SSH="ssh -o ClearAllForwardings=yes -o PermitLocalCommand=no ${DEPLOYHOST}" # macOS does not support readlink -f, so we use greadlink instead if [[ `uname` == 'Darwin' ]]; then