How To Secure Digitalocean Server with SSH Key


sudo apt-get update


mkdir .ssh


cd ~/.ssh


touch authorized_keys


sudo nano authorized_keys


sudo nano /etc/ssh/sshd_config


prohibit-password


sudo systemctl restart sshd.service


service apache2 restart

The post How To Secure Digitalocean Server with SSH Key appeared first on BMTechTips.

Comments