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
  • 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

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Basic 1st Cloudron setup advice ... root user vs. sudo user and SSH keys...

Basic 1st Cloudron setup advice ... root user vs. sudo user and SSH keys...

Scheduled Pinned Locked Moved Solved Support
installation
12 Posts 7 Posters 1.4k Views 7 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.
    • R Offline
      R Offline
      Reveller
      wrote on last edited by girish
      #1

      First time using Cloudron. I have a fresh new Ubuntu 22.04 server up and ready to go, but first I need to understand best practices regarding the following:

      Root User vs. Sudo User - To secure my servers, I normally prevent root logins. Create a sudo user, and only login with SSH keys.

      But I'm unclear how Cloudron works in this regard. The Installation instructions (https://docs.cloudron.io/installation/) are mute on this so far as I can tell.

      1. Should I run the install commands as the root user or a sudo user?

      The manual does mention some of this in the Security section (https://docs.cloudron.io/security/#securing-ssh-access) - but that seems to be post-install.

      Also... in that Security section of the manual, it mentions SSH is handled on port 202. My host has SSH setup on 1022.

      1. I've read those docs, but am still unsure what I'll need to do to rectify this... or maybe more specifically... what order in which I need to do which task. I can imagine a scenario in which I install Cloudron (via root logged in through port 1022) and then get locked out immediately after the install because it's expecting me to use port 202 instead.

      Deep appreciation for any hints on these issues. Thanks.

      1 Reply Last reply
      1
      • BrutalBirdieB Offline
        BrutalBirdieB Offline
        BrutalBirdie
        Partner
        wrote on last edited by BrutalBirdie
        #2

        Fresh Ubuntu 22.04 Server.
        login as root Step:

        1. run the install as the root user
        2. add a sudo user and secure sshd and set the port to 202 as written in the docs

        Like my work? Consider donating a drink. Cheers!

        1 Reply Last reply
        2
        • R Offline
          R Offline
          Reveller
          wrote on last edited by
          #3

          Ok. Sounds good. If anything explodes, I'm holding you accountable. Haha! πŸ˜‰

          1 Reply Last reply
          2
          • BrutalBirdieB Offline
            BrutalBirdieB Offline
            BrutalBirdie
            Partner
            wrote on last edited by
            #4

            If a it's fresh server you can always start over and over again πŸ˜‰

            Like my work? Consider donating a drink. Cheers!

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Reveller
              wrote on last edited by
              #5

              Yep. Exactly as I feared. I think the install was successful, but now I've lost the ability to SSH into my box because the ports are all wrong. And I can't edit them without SSH access.
              Grrrrrrrrrrr........

              And no, it's not that easy to start over and over again.

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Reveller
                wrote on last edited by
                #6

                All the cuss words.... how do I fix this now?

                I ran the install exactly as described. Verbatim.
                And now I'm locked out of my box.

                This is not a $5 DO instance I can just respin a hundred times until it's right. Cloudron is feeling like more hassle than it's worth.

                All afternoon to work around the simplest crap.

                Unless I'm just missing something.... I think my only option is to have my host recommission this server from scratch.

                Very not cool.

                J 1 Reply Last reply
                0
                • R Reveller

                  All the cuss words.... how do I fix this now?

                  I ran the install exactly as described. Verbatim.
                  And now I'm locked out of my box.

                  This is not a $5 DO instance I can just respin a hundred times until it's right. Cloudron is feeling like more hassle than it's worth.

                  All afternoon to work around the simplest crap.

                  Unless I'm just missing something.... I think my only option is to have my host recommission this server from scratch.

                  Very not cool.

                  J Offline
                  J Offline
                  JLX89
                  wrote on last edited by
                  #7

                  @Reveller You might be able to reboot in recovery mode or check to see if you have a cloud firewall enabled and verify the ports.

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    Reveller
                    wrote on last edited by
                    #8

                    So frustrated with this experience. The exact scenario I predicted (#2) above came true.

                    I should have paid more attention to my gut, and been more skeptical of the answer above. After all these hours, my host finally got me back into my server about 10 mins ago.

                    For anyone else needing help with this... the correct answer is... if your host uses an oddball SSH port like mine, update your [ /etc/ssh/sshd_config ] file before installing Cloudron ... or else you'll have a bad day like me - running wild goose chases trying to troubleshoot it and then finally begging/waiting for your host to bail you out when everything else fails.

                    Thank you for your efforts, @JLX89

                    necrevistonnezrN 1 Reply Last reply
                    0
                    • R Reveller

                      So frustrated with this experience. The exact scenario I predicted (#2) above came true.

                      I should have paid more attention to my gut, and been more skeptical of the answer above. After all these hours, my host finally got me back into my server about 10 mins ago.

                      For anyone else needing help with this... the correct answer is... if your host uses an oddball SSH port like mine, update your [ /etc/ssh/sshd_config ] file before installing Cloudron ... or else you'll have a bad day like me - running wild goose chases trying to troubleshoot it and then finally begging/waiting for your host to bail you out when everything else fails.

                      Thank you for your efforts, @JLX89

                      necrevistonnezrN Offline
                      necrevistonnezrN Offline
                      necrevistonnezr
                      wrote on last edited by
                      #9

                      @Reveller said in Basic 1st Cloudron setup advice ... root user vs. sudo user and SSH keys...:

                      For anyone else needing help with this... the correct answer is... if your host uses an oddball SSH port like mine, update your [ /etc/ssh/sshd_config ] file before installing Cloudron ... or else you'll have a bad day like me - running wild goose chases trying to troubleshoot it and then finally begging/waiting for your host to bail you out when everything else fails.

                      Thank you for your efforts, @JLX89

                      So nothing to do with Cloudron and everything to do with your host?! And as you had to be ssh-ed in with the correct β€žoddballβ€œ port to install Cloudron - how did the port change by the next time you tried to log in?

                      1 Reply Last reply
                      0
                      • imc67I Offline
                        imc67I Offline
                        imc67
                        translator
                        wrote on last edited by
                        #10
                        This post is deleted!
                        1 Reply Last reply
                        0
                        • C Offline
                          C Offline
                          ccfu
                          wrote on last edited by ccfu
                          #11

                          The question is why is the host setting an "oddball" SSH port on initial configuration? This is not standard practice so I feel it is quite right that the host should "bail you out" if that causes problems. I assume the host makes customers aware of this? The documentation for Cloudron in any case makes it very clear which ports are accessible by the firewall.

                          1 Reply Last reply
                          0
                          • girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #12

                            Sorry for the frustrating experience but I have to say in several years of using Cloud infrastructure, this is the first time I hear of someone providing a server on non-port 22. This is why such a special case has not made it to the docs. May I ask what VPS provider this is? We test installation over 30 providers, all use port 22 by default.

                            1 Reply Last reply
                            1
                            • girishG girish marked this topic as a question on
                            • girishG girish has marked this topic as solved on
                            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