Initial Ubuntu Vps Setup

— 1 minute read

Goal:

Steps:

  • buat in­stance di vps provider
    • kalau pakai lin­ode tam­bahkan ssh lap­top biar ga perlu in­put pass­word pas ssh as root
  • ssh as root ssh root@IP
  • cre­ate new deployr with sudo ac­cess
    • adduser deployr
    • in­put pass­word
    • un­tuk user info, bisa pakai de­fault, tekan en­ter aja
  • grant ad­min priv­i­leges
    • usermod -aG admin deployr
  • setup ba­sic fire­wall
    • ufw app list, harus­nya cuma ada OpenSSH
    • ufw enable, ak­tifkan ufw
    • cek sta­tus su­dah nyala atau belum ufw status
  • tam­bah ssh un­tuk user deployr
    • kalau lap­top nya sama saat buat in­stance, bisa pakai ssh user root, ting­gal pakai rsync
    • masih lo­gin se­bagi root di vps
    • rsync --archive --chown=deployr:deployr ~/.ssh /home/deployr