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 SFTP for Wordpress is connecting but rejecting the username + password

    Support
    sftp wordpress
    4
    17
    120
    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.
    • M
      msbt App Dev @Lonk last edited by

      @lonk are you using port 222 instead of 22?

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

        @lonk Can you double check that you have the username correct. Note that the username is not your email id or username@domain.com. It is username@app.domain.com. It is displayed in the Access section of the app. This is required because SFTP has no "vhost"/Host header like HTTP1.1 does.

        Lonk 1 Reply Last reply Reply Quote 2
        • Lonk
          Lonk @msbt last edited by

          @msbt Yup, if I don't use 222 then Transmit can't find the SFTP server.

          I'm gonna see if I can login to a new installation of Wordpress.

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

            @lonk was just curious because your paste said otherwise 😉

            Lonk 1 Reply Last reply Reply Quote 0
            • Lonk
              Lonk @msbt last edited by

              @msbt Do you mean this line:

              to 172.18.0.5:22
              

              This is a copy paste from the internal SFTP Cloudron logs. Port 222 public forwards to 172.18.0.5:22 internal.

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

                @lonk ah ok, my bad 😄

                1 Reply Last reply Reply Quote 1
                • d19dotca
                  d19dotca last edited by

                  I know this is marked as "Solved"... but is it? I have recently run into the same issue but for Surfer instance not WordPress, but same SFTP server obviously that's running the show. I get the following in the SFTP server logs:

                  2020-12-10T16:59:33.000Z <IpHostnameofClient> UNKNOWN - [10/Dec/2020:16:59:33 +0000] "USER <username@SFTPservername>" 331 -
                  2020-12-10T16:59:33.000Z 2020-12-10 16:59:33,825 sftp proftpd[3588] sftp (<IpHostnameofClient>): USER <username@SFTPservername>: no such user found from <IpHostnameofClient> to <MyIPAddress>:22
                  

                  I've verified the username they're using (the username@SFTPServerName) matches what's in the app access panel. The only thing that seems weird is the "22" port but I assume "222" forwards to "22"?

                  I tried myself with my own user in the same format but of course my own password and it worked fine, and when I purposely tried an incorrect password I actually see "Incorrect password" in the logs, so it seems they're using the right credentials and everything. Never experienced this issue before until today. Well actually it started yesterday but I wasn't notified of it until today. Oddly... Tuesday night I installed the v6 from v5, so I wondered if that had anything to do with it but the rest of my SFTP account access is working so I find it hard to believe, but it is interesting timing...

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

                    @d19dotca Is the SFTP user a "normal" user or admin user? non-admin users have SFTP disabled by default in Cloudron 6. This is a breaking change. You can enable it back in Services -> SFTP -> Allow non-admins.

                    d19dotca 2 Replies Last reply Reply Quote 1
                    • d19dotca
                      d19dotca @girish last edited by

                      @girish Ahh..... okay yeah they're a non-admin. That may be it then. Let me check.

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

                        @girish said in SFTP for Wordpress is connecting but rejecting the username + password:

                        non-admin users have SFTP disabled by default in Cloudron 6. This is a breaking change.

                        Ah okay, indeed that was it! Thank you so much for the quick reply there. 🙂

                        I may have missed it, but I didn't see that written anywhere in the release notes when updating to v6... if that's not documented we definitely need to add that. My apologies if I missed it though.

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

                          @d19dotca Technically, we haven't even announced the release of Cloudron 6 yet. It takes us ~2 weeks to push it out to all our users. And we push the blog post after most Cloudrons have updated. I realize this is a bit different to other software, but I think I mentioned elsewhere our mindset is tuned for auto-updating software (we are changing ourselves slowly...). If we push the blog post, people will rush to update and then we cannot handle the support rush. But this is a topic for another day 🙂

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

                            @d19dotca The docs are here but you won't know about it since it's pushed without the announcement - https://docs.cloudron.io/apps/#non-admin-access

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

                              @girish Ah okay, yeah that makes sense. FWIW, I'd suggest that any "breaking changes" like that though still be mentioned on the release notes that you see before manually updating Cloudron, but I realize that still may not be too helpful because most will just auto-update anyways. haha. A little bit of a predicament there I guess. All good, I just appreciate the really quick response! 🙂

                              Lonk 1 Reply Last reply Reply Quote 1
                              • Lonk
                                Lonk @d19dotca last edited by

                                @d19dotca @girish Updating to 6.0 fixed the issue completely. I didn't even change any settings in my FTP app and it logged right in, so weird.

                                d19dotca 1 Reply Last reply Reply Quote 0
                                • d19dotca
                                  d19dotca @Lonk last edited by

                                  @lonk Yeah I figured we had the same issue but apparently not, my bad. Didn't mean to hijack the thread earlier. haha. Mine was actually caused by v6.0 due to a breaking change in how SFTP works - by default for admins only, meaning any non-admin users are rejected out of the box. But I think yours was different as you filed it before v6.0.

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