Changes

Jump to: navigation, search

OPS345 Lab 1

31 bytes removed, 01:56, 11 December 2021
Change the default username
* Make sure your new user can run sudo without a password, same as ec2-user. Create '''/etc/sudoers.d/10-ops345-users''' with these contents:
<source>yoursenecaid ALL=(ALL) NOPASSWD:ALL</source>
* Allow your new user to log in using the SSH key you already have. You could create a new key pair instead, but you don't have to. Remember that your username is not asmith15:<source># cd /home/ec2-user/# cp -r .ssh/ ~yoursenecaid# chown -R yoursenecaid.users ~yoursenecaid/[[File:AWSCopySSHKey.ssh/png|border|left]]</source>
* Confirm ssh in as yoursenecaid and successfully sudo su -
* Delete ec2-user including the home directory. Use the userdel command.

Navigation menu