bash and linux snippets

setting up a new vps

adding a new user

  adduser bbenz
  sudo usermod -aG sudo bbenz
  su bbenz
  cd ~
  ssh-keygen # add these keys to gitlab
  cd .ssh
  vim authorized_keys # add workstation key

secure and obscure sshd

  sudo vim /etc/ssh/sshd_config
  PermitRootLogin no
  Port 22 # anything higher than 1024. check here
  service ssh restart