1 Answer
- Newest
- Most votes
- Most comments
1
I would suggest that using the root user or obtaining a password for it isn't a great idea as it could lead to a significant security compromise.
However, setting up SSH access using keys isn't anywhere as difficult as it seems. You need to generate a keypair (public and private) on your system; and then put the public key on your colleague's system. That's it. There are many pages describing how to do this including this one: https://www.linuxshelltips.com/passwordless-ssh-login/
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 years ago

Thank you for the suggestion, Brett. I am trying to work through the steps. All of Step 1 worked as expected. I am unclear how to get the public key copied to the source server (the one I am trying to migrate the sites from). When I try to use the ssh-copy-id command, it returns all of this:
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys root@52.41.45.66: Permission denied (publickey).
So, I am stuck here. Any suggestions? Can I download the id_rsa.pub file (which does show up in my .ssh directory), and send it to the admin of the other server? How can he import it once he has it? Would it work to import it through the AWS console, or through the SSH terminal?