---
# System prepended metadata

title: Create Ec2 linux and set users for remote access

---

# Create Ec2 linux and set users for remote access

1. launch EC2 linux
2. connect and linux with admin : sudo su
3. add user
`adduser username`
4. set password
`passwd username`
![](https://i.imgur.com/KxUO7tp.png)

5. Enable username/password login
`sudo vi /etc/ssh/sshd_config`
![](https://i.imgur.com/adLabHm.png)
6. restart server 
`sudo reboot`
7. Add user to sudoers
`usermod -aG wheel username`
