Public and Private Keys for AWS Users Create a normal user in AWS sudo adduser username How to add user in sudo group or wheel group sudo usermod --groups sudo --append username Allow user to run the sudo command without asking the password root ALL=(ALL) ALL username ALL=(ALL) NOPASSWD:ALL Or you can add complete sudo or wheel group. The users under sudo or wheel group run sudo command with asking password to sudo users %wheel ALL=(ALL) NOPASSWD:ALL %sudo ALL=(ALL) NOPASSWD:ALL To switch to the user directory cd /home/username Run the following command inside the user home directory to generate keys ssh-keygen - b 4096 -f username -t rsa To create the .ssh directory under user home directory mkdir .ssh Give permission to the owner to read, write and execute (700) chmod 700 .ssh To store public key in authorized_keys file (after exit from the username ) sudo cat username .pub >> .ssh/authorized_keys so that the owner can read and write to the file chm...