commit 5e541cad2b1651b6bf4cc47238cb89ad065bb341
parent b56caabfec9f397dcad431713445a6fec9340b20
Author: tg(x) <*@tg-x.net>
Date: Fri, 4 Feb 2011 13:27:08 +0100
disabled ssh key check
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/gitzone-shell b/bin/gitzone-shell
@@ -30,12 +30,12 @@ elif [ -f $allow_key_mgmt_file ]; then
cat .ssh/authorized_keys
elif [[ "$cmd" == add-key* ]]; then
key="${cmd:8}"
- if [[ "$key" =~ ^ssh-(rsa|dss)\ [a-zA-Z0-9/+]+=*\ [a-zA-Z0-9_.]+@[a-zA-Z0-9.-]+$ ]]; then
+ #if [[ "$key" =~ ^ssh-(rsa|dss)\ [a-zA-Z0-9/+]+=*\ [a-zA-Z0-9_.]+@[a-zA-Z0-9.-]+$ ]]; then
echo "$key" >> .ssh/authorized_keys && \
echo "key added"
- else
- echo "invalid key"
- fi
+ #else
+ # echo "invalid key"
+ #fi
elif [[ "$cmd" == del-key* ]]; then
key="${cmd:8}"
$grep -v "$key" .ssh/authorized_keys > .ssh/authorized_keys-new && \