From 7da18e6ca16bd71a6d12581c382cf43f97719382 Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Thu, 17 Aug 2017 19:35:23 +0100 Subject: force permission to auth keys --- tools/boca-outmanage | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/boca-outmanage b/tools/boca-outmanage index 7a3bf47..e80d1ba 100644 --- a/tools/boca-outmanage +++ b/tools/boca-outmanage @@ -72,6 +72,8 @@ if [ ! -f /root/.ssh/$BOCASERVER -o ! -f /root/.ssh/$BOCASERVER.pub -o ! -f /roo grep -qi ssh-rsa ${temp}.out if [ "$?" == "0" ]; then grep -i ssh-rsa ${temp}.out >> /root/.ssh/authorized_keys + chmod 700 /root/.ssh + chmod 600 /root/.ssh/authorized_keys fi rm ${temp}.out else -- cgit v1.2.3