Open main menu

CDOT Wiki β

Changes

OPS705 Lab 3 (2211)

3 bytes added, 14:44, 26 January 2021
Fixes missing -r option.
From your secondary ''yourusername'' account:
# Copy the authorized key file and its folder with this command: <code>sudo cp -r ~ec2-user/.ssh ~/</code> (It may ask for a password. Use the secondary user account password you just set up.)
# Change the new file's ownership: <code>sudo chown ''yourusername'':''yourusername'' ~/.ssh</code>
# Now, completely log out back to your local system. Type <code>exit</code> and press Enter to get back to your ''ec2-user'' account. Then, type <code>exit</code> and press Enter again to fully log out.