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


    Cloudron Forum

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

    SFTP access for LAMP app

    LAMP
    sftp
    4
    10
    142
    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.
    • 3246
      3246 last edited by girish

      Quick question, as I am too daft to figure it out myself by looking through the posts and docu:

      Where do I find the password for the SFTP user of the LAMP stack app?

      "Password - Cloudron password (password is the same for SFTP access to all apps)" and

      "Only Cloudorn admins have SFTP access. To give a specific user access to SFTP of a single app, make them an operator."

      Found at https://docs.cloudron.io/apps/#ftp-access

      Does this suggest it should be the same password as my main admin user?

      Also, despite having opened the required port 222, I get a message saying I cannot connect to my app. What's up with that? I've tried using the local IP of my Cloudron box too with the same results.

      murgero 1 Reply Last reply Reply Quote 0
      • murgero
        murgero App Dev @3246 last edited by murgero

        @3246 In order to connect, you must use the FQDN of the app you are connecting to in your username, shown like below.

        Host: my.example.com
        Port: 222
        Username: exUser@app1.example.com (Note, this is NOT an email)
        Password: Cloudron password. (As in the one you use to sign into Cloudron)

        So for you, it could be:

        Host: my.3246.com
        Port: 222
        Username 3246@app1.3246.com
        Password: Cloudron Password.

        (Using your username to kind of fill in blank info)

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

        3246 2 Replies Last reply Reply Quote 0
        • 3246
          3246 @murgero last edited by

          @murgero Thank you. Do you mean the name of the app, not what Cloudron shows me?

          For example, the app has the FQDN example.com, while Cloudron shows me cloudronfqdn.com when I click on the SFTP settings for the app.

          1 Reply Last reply Reply Quote 0
          • 3246
            3246 @murgero last edited by

            OK, tried that too but it's just not connecting to 222. I have restarted by routers and canyouseeme.org tells me port 222 is closed. How can I check this on Cloudron?

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

              @3246 For a start, are you able to connect at all or is this an authentication issue (i.e post connection) ?

              Does telnet my.domain.com 222 work ? If it does, then atleast firewall etc work.

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

                @girish sadly that's not working, no. The services dashboard shows SFTP running and I can connect via SSH (using my system user login, not Cloudron).

                nebulon girish 2 Replies Last reply Reply Quote 0
                • nebulon
                  nebulon Staff @3246 last edited by

                  @3246 the SFTP endpoint is using your Cloudron users now the system users. The username will be cloudronusername@appdomain The appdomain is required so the system knows to which app you want to connect. That is just a virtual email address and does not need to exist.

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

                    @3246 thanks. My understanding is that you have this installed in your house, correct? If so, this is what I would do:

                    • Does telnet <internal-ip> 222 work? If this doesn't work, this is some cloudron related issue. I would also double check here that telnet <interal-ip> 22 works (the ssh port)
                    • If the above works, then can you double check if your router firewall is allowing incoming port 222 for the public IP and into this VM?
                    3246 1 Reply Last reply Reply Quote 0
                    • 3246
                      3246 @girish last edited by

                      @girish SSH works, 222 does not

                      Services look normal:

                      2022-03-06 11.02.05 my.bebraver.cloud 8aa6aff3003d.png

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

                        @3246 Strange indeed. I can't quite make out what the issue is. Can you drop a mail to support@cloudron.io with SSH access and I can try to debug?

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB