> For the complete documentation index, see [llms.txt](https://n000b3r.gitbook.io/oscp-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://n000b3r.gitbook.io/oscp-notes/configurations/create-new-ssh-root-user.md).

# Create new SSH root user

### Create new root user

<pre class="language-bash"><code class="lang-bash"><strong>useradd bill
</strong></code></pre>

```
passwd bill
```

```bash
usermod -aG sudo bill
```

### Ensure that SSH config allows root login

```
vim /etc/ssh/sshd_config
```

* Ensure that  *`PermitRootLogin yes`*

### Restart SSH Server

#### RedHat

```
service sshd restart
```

#### Ubuntu

```
sudo systemctl restart ssh
```
