Brian O'Connor
Committed by Gerrit Code Review

Improving onos-push-keys to only require password once

Change-Id: I40d9855fdba45c07d84b70cb1638effb49742eaf
......@@ -8,11 +8,10 @@
remote=$ONOS_USER@${1:-$OCI}
scp -q ~/.ssh/id_rsa.pub $remote:/tmp
ssh $remote "
cat ~/.ssh/id_rsa.pub | ssh $remote "
mkdir -p ~/.ssh
chmod 700 ~/.ssh
cat /tmp/id_rsa.pub >> ~/.ssh/authorized_keys
cat >> ~/.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
......