Changes

Jump to: navigation, search

OPS705 Lab 3 (2211)

3 bytes added, 14:51, 26 January 2021
INVESTIGATION 2: Adding A New User
# 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 -R ''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.
# From your local machine, use the SSH command to login, but replace ''ec2-user'' before the @ symbol with ''yourusername''. It should log you in directly! Use that new account for the rest of this lab.

Navigation menu