Jonathan Hart
Committed by Gerrit Code Review

Restrict the key file permissions as required by some OSes

Change-Id: I1774c8e50a8cabc7d4ac8046ed1325160b5fc0c3
......@@ -11,8 +11,10 @@ remote=$ONOS_USER@${1:-$OCI}
scp -q ~/.ssh/id_rsa.pub $remote:/tmp
ssh $remote "
mkdir -p ~/.ssh
chmod 700 ~/.ssh
cat /tmp/id_rsa.pub >> ~/.ssh/authorized_keys
sort -u ~/.ssh/authorized_keys > ~/.ssh/authorized_keys.bak
mv ~/.ssh/authorized_keys.bak ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
"
ssh -n -o PasswordAuthentication=no $remote true
......