Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 896 Bytes

README.md

File metadata and controls

38 lines (29 loc) · 896 Bytes

Easy_prepare_VPS

Prepare VPS with Sudo User and login with ssh key

How to setup ssh key:

Tested on Ubuntu 18.04 and 16.04 with following hosts

Install:

wget https://raw.githubusercontent.com/seatrips/Easy_prepare_VPS/master/prepare.sh > /dev/null 2>&1 && bash prepare.sh

What happens:

  • 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