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. App Wishlist
  3. Multiple sessions in Cloudron CLI

Multiple sessions in Cloudron CLI

Scheduled Pinned Locked Moved Solved App Wishlist
cli
10 Posts 5 Posters 1.6k Views 5 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.
  • yusfY Offline
    yusfY Offline
    yusf
    wrote on last edited by girish
    #1

    I manage a bunch of Cloudrons. Sometimes via the CLI. Therefore, logging in into each Cloudron instance (thus logging out) from the others is annoying. Can you make it so that one can be logged in to all of them at the same time?

    1 Reply Last reply
    1
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      We actually had this some time back, but thought this was only a use-case internal to us. I miss it as well, I will see how we can bring that back in some way.

      1 Reply Last reply
      2
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        Are we thinking of adding a global --cloudron <my.example.com> argument ?

        yusfY 1 Reply Last reply
        0
        • girishG girish

          Are we thinking of adding a global --cloudron <my.example.com> argument ?

          yusfY Offline
          yusfY Offline
          yusf
          wrote on last edited by
          #4

          @girish This is what I had in mind. Required when multiple sessions are present, otherwise not?

          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #5

            I would actually rather prefer active login sessions like you have with other such tools like docker login where you switch between them, but if the token is still valid you don't have to explicitly login. The --cloudron arg is quite some overhead to pass all the time.

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

              @nebulon Isn't that how it works now already? I thought we stash all the login tokens in ~/.cloudron.json ?

              1 Reply Last reply
              0
              • M Online
                M Online
                msbt
                App Dev
                wrote on last edited by
                #7

                that stopped working a while ago, maybe with the introduction of the 2FA cli?

                1 Reply Last reply
                1
                • murgeroM Offline
                  murgeroM Offline
                  murgero
                  App Dev
                  wrote on last edited by
                  #8

                  If you don't mind this work around:

                  sudo adduser cloudron1 ## or whatever name you want
                  sudo adduser cloudron2 ## or whatever name you want
                  sudo adduser cloudron3 ## or whatever name you want
                  
                  sudo -u cloudron1 /bin/bash cloudron login ## Setup session 1 time
                  sudo -u cloudron1 /bin/bash cloudron <do stuff>
                  
                  sudo -u cloudron2 /bin/bash cloudron login ## Setup session 1 time
                  sudo -u cloudron2 /bin/bash cloudron <do stuff>
                  
                  sudo -u cloudron3 /bin/bash cloudron login ## Setup session 1 time
                  sudo -u cloudron3 /bin/bash cloudron <do stuff>
                  

                  This should keep the sessions separate, some extra typing involved but it might do the trick for you? That way you only login once.

                  --
                  https://urgero.org
                  ~ Professional Nerd. Freelance Programmer. ~

                  1 Reply Last reply
                  0
                  • nebulonN Offline
                    nebulonN Offline
                    nebulon
                    Staff
                    wrote on last edited by
                    #9

                    This is fixed now with cloudron cli version 4.1.6

                    1 Reply Last reply
                    4
                    • yusfY Offline
                      yusfY Offline
                      yusf
                      wrote on last edited by
                      #10

                      What if I want to keep each build service associated to each Cloudron instance respectively?

                      1 Reply Last reply
                      0
                      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