Skip to content

Commit 2d2cc74

Browse files
author
Patrick M
committed
fix: add username
1 parent 57f8fc5 commit 2d2cc74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_posts/2022-12-18-lxc-setup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ apt install curl nano openssl rsync sudo -y
2525
It is critical that you don't use root for SSH or for typical CLI tasks. I always create a new user for that reason.
2626

2727
```bash
28-
useradd -m -g users -G sudo <username>
29-
passwd <username>
30-
chsh -s /bin/bash <username>
28+
useradd -m -g users -G sudo patrick
29+
passwd patrick
30+
chsh -s /bin/bash patrick
3131
```
3232

3333
## SSH Configuration
@@ -49,7 +49,7 @@ MaxSessions 2
4949
-----
5050
5151
# To disable tunneled clear text passwords, change to no here!
52-
PasswordAuthentication yes
52+
PasswordAuthentication no
5353
PermitEmptyPasswords no
5454
```
5555

0 commit comments

Comments
 (0)