Prepare VPS with Sudo User and login with ssh key
Tested on Ubuntu 18.04 and 16.04 with following hosts
wget https://raw.githubusercontent.com/seatrips/Easy_prepare_VPS/master/prepare.sh > /dev/null 2>&1 && bash prepare.sh
- add 2G SWAP ( change script for more or less )
- fix locales if you want
- update
- upgrade
- dist-upgrade
- install NTP
- install fail2ban
- install htop or glances
- install/set UFW
- allow 22 for ssh
- set custom ports
- possibility to make User with sudo rights
- copy ssh key to new User
- set passpword authentication no
- set empty password no
@seatrips