Linode/Setup: Difference between revisions
m (Short devops comments) |
|||
Line 1: | Line 1: | ||
Assuming you have made a [[Linode]] with [[Debian]] 11 | Assuming you have made a [[Linode]] with [[Debian]] 11. | ||
== User accounts == | == User accounts == | ||
* Make user accounts | * Make user accounts. (You can do this as many times as you want to add more users.) | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 21: | Line 21: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Security == | == Security (only need to do this at setup) == | ||
=== Add cryptographic public keys for user authentication === | === Add cryptographic public keys for user authentication === |
Revision as of 09:41, 21 November 2022
Assuming you have made a Linode with Debian 11.
User accounts
- Make user accounts. (You can do this as many times as you want to add more users.)
adduser \
--system \
--shell /bin/bash \
--gecos 'User Description If u want' \
--group \
--home /home/USERNAME \
USERNAME
- Add user to
sudo
group (if needed)
usermod -aG sudo USERNAME
Security (only need to do this at setup)
Add cryptographic public keys for user authentication
- RSA keys (has known vulnerabilities)
- ed25519 keys (better alternative: faster, more secure, resilient against hash-function collision attacks, shorter)
Configure sshd
- Disable password login
- Disable root login