Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. Harden custom terminal app using SSH

Harden custom terminal app using SSH

Scheduled Pinned Locked Moved Discuss
3 Posts 2 Posters 52 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E
    E
    ekevu123
    wrote last edited by
    #1

    I want to create a custom terminal-based cloudron app and connect to it using SSH. This app will process sensitive data, so I need to think about heightened security. The goal is to allow SSH access only, no public access whatsoever is needed.

    Are there any good processes I could follow? I was thinking of restricting access only via Cloudron's VPN app, how would I implement this?

    1 Reply Last reply
    0
    • jamesJ
      jamesJ
      james
      Staff
      wrote last edited by
      #2

      Hello @ekevu123

      @ekevu123 said:

      no public access whatsoever is needed

      At least a health check path needs to be "exposed" for the app.

      @ekevu123 said:

      I was thinking of restricting access only via Cloudron's VPN app, how would I implement this?

      With Cloudron 10 you can simply enable VPN protection for an app in the Access settings of the app.
      But that only protects the http/s access, not exposed ports.
      So if you app exposed e.g.: port 2022 as the SSH port that will still be accessible publicly even with the VPN protection enabled.

      @ekevu123 said:

      think about heightened security

      Only allowing ssh key based auth and no passwords for sure.
      Also enforcing 2FA on SSH keys might also be an option to make it even more secure.

      @ekevu123 said:

      The goal is to allow SSH access only

      One idea that could also help although a little security via obscurity and with the VPN protection of the app.
      Hide the SSH daemon behind a NGINX inside the Cloudron app.
      This way the only port exposed from the app is e.g.: 8080 => Cloudron NGINX 443 and could even serve a static HTML that can be used for health check in the manifest and also be a "honey pot" so it looks like just a website.
      But when you connect to the domain with port 443 with SSH the NGINX will just route/stream that to the ssh daemon.
      I am not 100% sure if that is possible with the Cloudron default NGINX setup.
      That would need some testing.

      1 Reply Last reply
      1
      • J joseph moved this topic from Support
      • J joseph marked this topic as a regular topic
      • E
        E
        ekevu123
        wrote last edited by
        #3

        Thank you, that gave me something to work through!

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search