Any guides on how to host at home? I’m always afraid that opening ports in my home router means taking the heavy risk of being hacked. Does using something like CloudFlare help? I am a complete beginner.

Edit: Thanks for all the great response! They are very helpful.

  • iliketurtles@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    What’s wrong with exposing port 22? I have password authentication disabled, ssh keys only. Isn’t that secure enough?

    • macgregor@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      I do as well on a non-standard port, although that doesn’t really provide any extra security. I found ssh only login acceptably secure personally, but it’s definitely less secure than tailscale which can operate with 0 open ports. The risk would be from os/sshd vulnerabilities that can be exploited. As long as you keep the router up to date it should be safe enough.

      • easeKItMAn@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 year ago

        Why would you expose SSH on a home production server?
        Hosting several dockerized apps for friends since years. Only 80/443 proxy ports are open. Apps are secured with 2FA and monitored by fail2ban + kept up-to-date. Never had any issue.