In step 2, you may find it better to use ‘>>' instead of ‘>' to add the key to an authorized_keys file, to avoid over-writing a key which may already be there (if you use ‘>>' then you will append to the contents of the file, instead of ‘>' which replaces the contents of the file)