Mercurial > hg > beaglert
diff scripts/setup-ssh.sh @ 99:f03d68f18d7f
Appending key to authorized_keys rather than overwriting the file
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 27 Jul 2015 11:33:08 +0100 |
parents | 6bfd95cb5744 |
children |
line wrap: on
line diff
--- 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