# HG changeset patch # User Giulio Moro # Date 1437993188 -3600 # Node ID f03d68f18d7fd08afe0474c84901d543e315798a # Parent 9a413516a1fc8c92ff92f898e2964c095504ffcd Appending key to authorized_keys rather than overwriting the file diff -r 9a413516a1fc -r f03d68f18d7f scripts/setup-ssh.sh --- a/scripts/setup-ssh.sh Thu Jul 23 02:38:09 2015 +0100 +++ b/scripts/setup-ssh.sh Mon Jul 27 11:33:08 2015 +0100 @@ -78,7 +78,7 @@ # StrictHostKeyChecking=no below will prevent the following message upon the first connection: # "The authenticity of host '192.168.1.2' can't be established." # which would require the user to type 'yes' -cat ${PRIVATE_KEY_FILENAME}.pub | (ssh -q -o StrictHostKeyChecking=no bbb 'mkdir -p .ssh; cat > .ssh/authorized_keys') +cat ${PRIVATE_KEY_FILENAME}.pub | (ssh -q -o StrictHostKeyChecking=no bbb 'mkdir -p .ssh; cat >> .ssh/authorized_keys') if [ $? -ne 0 ] ; then printf "ERROR: An error occurred while copying the public key to the BBB\n" exit 3