tdisabled ssh key check - gitzone - git-based zone management tool for static and dynamic domains HTML git clone https://git.parazyd.org/gitzone DIR Log DIR Files DIR Refs --- DIR commit 5e541cad2b1651b6bf4cc47238cb89ad065bb341 DIR parent b56caabfec9f397dcad431713445a6fec9340b20 HTML Author: tg(x) <*@tg-x.net> Date: Fri, 4 Feb 2011 13:27:08 +0100 disabled ssh key check Diffstat: M bin/gitzone-shell | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- DIR diff --git a/bin/gitzone-shell b/bin/gitzone-shell t@@ -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 && \