HOWTO - Create New SSH User
Create a New SSH User: Create a new user on your server for the person who needs to SSH in. You can do this using the adduser command. For example: sudo adduser newuser Follow the prompts to set up a password and other details for the new user. Grant Sudo Privileges (Optional): If the user needs administrative privileges, you can add them to the sudo group. This allows them to execute commands with superuser privileges. Use the usermod command: sudo usermod -aG sudo newuser Provide Public Key: Ask the user to generate an SSH key pair on their local machine (if they haven't already) using the ssh-keygen command. They will have a private key (usually named id_rsa ) and a public key (usually named id_rsa.pub ). Send Public Key to You: Have the user send you their public key. This is typically the content of the id_rsa.pub file. They can use a secure method like encrypted email or a secure messagi...