Changes

Jump to: navigation, search

OPS705 Lab 3 (2211)

36 bytes removed, 13:39, 26 January 2021
Modifies key copy to include SSH folder.
Now, let's copy authentication information to your new account so you can log in directly next time.
From your secondary ''yourusername'' acountaccount:
# Copy the authorized key file and its folder with this command: <code>sudo cp ~ec2-user/.ssh/authorized_keys ~/.ssh/authorized_keys</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/authorized_keys</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