← Back to list

SSH to the AWS ubuntu server with the customized Username and Password- 3 easy steps

1.Execute below commands as a root user for adding a new user

vinothkumarg · 2022-07-27 05:02 · 0 claps · 0.7 min read
#ubuntu #aws-ubuntu #login-password #ssh-login #new-user
Open on Medium ↗
Wiki topics: ☁️ · DevOps & Cloud 🔓 · Open Source 🥊 · Combat Sports

SSH to the AWS ubuntu server with the customized Username and Password- 3 easy steps

1.Execute below commands as a root user for adding a new user

root@ip-172–XX-XX-XX:/home/ubuntu# adduser Newuser Adding user **Newuser**’ … Adding new groupNewuser’ (1001) … Adding new user **Newuser**’ (1001) with groupNewuser’ … Creating home directory /home/**Newuser**’ … Copying files from/etc/skel’ … New password: Retype new password: passwd: password updated successfully Changing the user information for Newuser Enter the new value, or press ENTER for the default Full Name [Newuser]: Newuser Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] Y

2.Then edit the /etc/ssh/sshd_config file to add below lines at the bottom of the file.

root@ip-172–XX-XX-XX:/etc/ssh# vi sshd_config

Match User Newuser PasswordAuthentication yes

3.Now perform a restart.

root@ip-172–XX-XX-XX:/etc/ssh# systemctl restart sshd

Now try to ssh to the ubuntu server with the newly created username and password.

Thanks for reading.. If it works, appreciate me by subscribing my page.. :)


메타데이터
post_id
3bae0b97e13a
slug
ssh-to-the-aws-ubuntu-server-with-the-customized-username-and-password-3-easy-steps-3bae0b97e13a
url
https://medium.com/@gvinobigboss/ssh-to-the-aws-ubuntu-server-with-the-customized-username-and-password-3-easy-steps-3bae0b97e13a
canonical_url
https://medium.com/@gvinobigboss/ssh-to-the-aws-ubuntu-server-with-the-customized-username-and-password-3-easy-steps-3bae0b97e13a
author_url
https://medium.com/@gvinobigboss
status
ok
fetched_at
2026-07-14 07:12:13