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


Navigation

    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    SOLVED Multiple sessions in Cloudron CLI

    App Wishlist
    cli
    5
    10
    85
    Loading More Posts
    • 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.
    • yusf
      yusf last edited by girish

      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 Reply Quote 1
      • nebulon
        nebulon Staff last edited by

        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 Reply Quote 2
        • girish
          girish Staff last edited by

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

          yusf 1 Reply Last reply Reply Quote 0
          • yusf
            yusf @girish last edited by

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

            1 Reply Last reply Reply Quote 0
            • nebulon
              nebulon Staff last edited by

              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 Reply Quote 0
              • girish
                girish Staff last edited by

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

                1 Reply Last reply Reply Quote 0
                • M
                  msbt App Dev last edited by

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

                  1 Reply Last reply Reply Quote 1
                  • M
                    murgero App Dev last edited by

                    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.

                    1 Reply Last reply Reply Quote 0
                    • nebulon
                      nebulon Staff last edited by

                      This is fixed now with cloudron cli version 4.1.6

                      1 Reply Last reply Reply Quote 4
                      • yusf
                        yusf last edited by

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

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post