Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello!
Is there any particular reason that this guide doesn’t recommend the installation of ntp and the configuration of swap space the way that the Initial Server Setup with Ubuntu 14.04 guide did?
Thanks!
This comment has been deleted
Do not change the default SSH port in /etc/ssh/sshd_config like it was mentioned in the previous Ubuntu tutorials. If you do that and enable ufw app OpenSSH, you will lock yourself out of the VPS.
http://manpages.ubuntu.com/manpages/xenial/man8/ufw.8.html
ufw supports connection rate limiting, which is useful for protecting against brute-force login attacks. When a limit rule is used, ufw will normally allow the connection but will deny connections if an IP address attempts to initiate 6 or more connections within 30 seconds. See http://www.debian-administration.org/articles/187 for details.
Typical usage is:
ufw limit ssh/tcp
This comment has been deleted
This comment has been deleted
Would it be good to suggest users disable root login via SSH as described in Step Five — Configure SSH Daemon?
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04
Thanks for the nice article. Just a quick note I thought could be helpful:
I would disable root login from sshd_config file. This would make tracking easier since everything would be recorded in the system log when sudo is used. If you needed to fall back to root, you still could do so using sudo sulogin command.
Disabling Root Login
Type the following command to edit the sshd_config file.
sudo vim /etc/ssh/sshd_config
Find the following line
PermitRootLogin yes
Change it to no
PermitRootLogin no
Save and quit VIM.
Restart the SSH daemon:
sudo service sshd restart
Done!
Now you won’t be able to login using root. If you need root privileges use the sudo command as described above in this article. However, if it ever becomes necessary to fall back to the root user, you can do so issuing the following command:
sudo sulogin
Footnote: If you are not familiar with VIM, you can use nano or use the following article on VIM. https://www.digitalocean.com/community/tutorials/installing-and-using-the-vim-text-editor-on-a-cloud-server#modal-editing
I would have included Fail2ban
sudo apt install fail2ban -y
your gonna get hammered by brute force attacks on your ssh port anyway why not make them waste time.