Mercurial > hg > beaglert
changeset 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 | 9a413516a1fc |
children | b697e82ebb25 |
files | scripts/setup-ssh.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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