Adding a New User
adduser usernameusermod -aG sudo usernameSSH login with a new username
cd /home/<username>
mkdir .ssh
chmod 700 .ssh
touch .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
chown -R <username>:<username> .sshecho "<PUBLIC_KEY_LINE" >> .ssh/authorized_keysLast updated
Was this helpful?