Skip to content

Instantly share code, notes, and snippets.

@ruevaughn
Last active October 15, 2021 10:06
Show Gist options
  • Save ruevaughn/7b607d70020d849a53727d406f39ecb7 to your computer and use it in GitHub Desktop.
Save ruevaughn/7b607d70020d849a53727d406f39ecb7 to your computer and use it in GitHub Desktop.
https://feross.org/how-to-setup-your-linode/
notepad c:\windows\system32\drivers\etc\hosts
Measure TCP handshake and SSL exchange time - Perform a test of how much time it takes to perform both the TCP
curl -kso /dev/null -w "tcp:%{time_connect}, ssldone:%{time_appconnect}\n" https://linuxsecurity.expert/
scp ~/.ssh/id_rsa.pub <your username>@<your server ip>:
mkdir .ssh
mv id_rsa.pub .ssh/authorized_keys
chown -R <your username>:<your username> .ssh
chmod 700 .ssh
chmod 600 .ssh/authorized_keys
" Disable remote root login and change the SSH port
sudo vim /etc/ssh/sshd_config
" Set “Port” to “444” and “PermitRootLogin” to “no”. Save the file and restart the SSH service:
ps --sort=-pcpu -eo pcpu,pid,user,args | head
lynis audit system --tests-from-group "firewalls"
sudo systemctl restart ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment