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. Surfer
  3. Surfer - SFTP

Surfer - SFTP

Scheduled Pinned Locked Moved Solved Surfer
25 Posts 5 Posters 3.7k 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.
  • nebulonN Offline
    nebulonN Offline
    nebulon
    Staff
    wrote on last edited by
    #2

    I don't think this is related to surfer itself, as SFTP is provided by the platform.
    What you pasted as snippets looks fine to me though and apparently you can reach the server as well but the credentials just don't match?

    timconsidineT 3 Replies Last reply
    0
    • nebulonN nebulon

      I don't think this is related to surfer itself, as SFTP is provided by the platform.
      What you pasted as snippets looks fine to me though and apparently you can reach the server as well but the credentials just don't match?

      timconsidineT Offline
      timconsidineT Offline
      timconsidine
      App Dev
      wrote on last edited by
      #3

      @nebulon thank you
      yes strange
      I'm using the same credentials as Cloudron user and when I log in to the Surfer admin page.
      I will keep trying with quadruple/quintuple checking 🙂

      1 Reply Last reply
      0
      • nebulonN nebulon

        I don't think this is related to surfer itself, as SFTP is provided by the platform.
        What you pasted as snippets looks fine to me though and apparently you can reach the server as well but the credentials just don't match?

        timconsidineT Offline
        timconsidineT Offline
        timconsidine
        App Dev
        wrote on last edited by timconsidine
        #4

        @nebulon I logged in by SSH to my Cloudron box
        I looked in /etc/passwd but my Cloudron users are not listed there.
        Is that correct ?
        It would explain why the box is rejecting a user connection.
        But I don't recall needing to set up users for SFTP access.

        systemctl status ssh reports service running but

         Failed password for invalid user timconsidine@test.domain.uk from w.x.y.z. port 62663 ssh2
        

        Does that mean Cloudron users have to be added to SFTP config on the box ??

        1 Reply Last reply
        0
        • nebulonN nebulon

          I don't think this is related to surfer itself, as SFTP is provided by the platform.
          What you pasted as snippets looks fine to me though and apparently you can reach the server as well but the credentials just don't match?

          timconsidineT Offline
          timconsidineT Offline
          timconsidine
          App Dev
          wrote on last edited by
          #5

          @nebulon cracked it !

          Found this post : https://forum.cloudron.io/post/45417

          Doing the chmod and restarting the sftp service allows access.

          Does this mean there is an issue in Surfer which needs attention ? Or in the Cloudron config ?

          jdaviescoatesJ 1 Reply Last reply
          3
          • timconsidineT timconsidine marked this topic as a question on
          • timconsidineT timconsidine has marked this topic as solved on
          • timconsidineT timconsidine has marked this topic as unsolved on
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #6

            For context, Cloudron is not using unix users for such things, so /etc/passwd will not have those users.

            For the chmod, it looks like @girish already fixed the restore path as mentioned in that post you referred to. Generally the SFTP feature is transparent to the app, however an app must specify if SFTP should be exposed or not in the manifest.

            robiR 1 Reply Last reply
            1
            • timconsidineT timconsidine has marked this topic as solved on
            • nebulonN nebulon

              For context, Cloudron is not using unix users for such things, so /etc/passwd will not have those users.

              For the chmod, it looks like @girish already fixed the restore path as mentioned in that post you referred to. Generally the SFTP feature is transparent to the app, however an app must specify if SFTP should be exposed or not in the manifest.

              robiR Offline
              robiR Offline
              robi
              wrote on last edited by
              #7

              @nebulon So how is this leftover from May for Tim?

              A surfer app installed from before then?

              Do updates to the app not fix the issue?

              Do updates for Cloudron not fix the issue in older apps?

              Conscious tech

              timconsidineT 1 Reply Last reply
              0
              • robiR robi

                @nebulon So how is this leftover from May for Tim?

                A surfer app installed from before then?

                Do updates to the app not fix the issue?

                Do updates for Cloudron not fix the issue in older apps?

                timconsidineT Offline
                timconsidineT Offline
                timconsidine
                App Dev
                wrote on last edited by
                #8

                @robi I tried first on an existing Surfer app but then installed a new one, in case there was some kind of 'legacy' issue.

                But as @nebulon says, it's not really nothing about the app.
                Seems like the Cloudron install doesn't (or didn't) do this chmod by itself in the platform.

                I haven't tried a new Cloudron install, so maybe it's only installations which have been running a while.

                Generally it's not a problem, but maybe something more accessible in documentation for apps using SFTP would help. Instead of leaving this priceless nugget buried in a forum post. It's only because I am so stubborn 😆 that I found it. I'm like a dog with a bone sometimes !

                All sorted for me now. Maybe just a docs issue for others in future.

                1 Reply Last reply
                0
                • timconsidineT timconsidine

                  @nebulon cracked it !

                  Found this post : https://forum.cloudron.io/post/45417

                  Doing the chmod and restarting the sftp service allows access.

                  Does this mean there is an issue in Surfer which needs attention ? Or in the Cloudron config ?

                  jdaviescoatesJ Offline
                  jdaviescoatesJ Offline
                  jdaviescoates
                  wrote on last edited by
                  #9

                  @timconsidine said in Surfer - SFTP:

                  @nebulon cracked it !

                  Found this post : https://forum.cloudron.io/post/45417

                  Doing the chmod and restarting the sftp service allows access.

                  Does this mean there is an issue in Surfer which needs attention ? Or in the Cloudron config ?

                  I'm just trying to get Publii working with Surfer and SFTP too but I'm a little unclear what I'm supposed to do?

                  I use Cloudron with Gandi & Hetzner

                  jdaviescoatesJ timconsidineT 2 Replies Last reply
                  0
                  • jdaviescoatesJ jdaviescoates

                    @timconsidine said in Surfer - SFTP:

                    @nebulon cracked it !

                    Found this post : https://forum.cloudron.io/post/45417

                    Doing the chmod and restarting the sftp service allows access.

                    Does this mean there is an issue in Surfer which needs attention ? Or in the Cloudron config ?

                    I'm just trying to get Publii working with Surfer and SFTP too but I'm a little unclear what I'm supposed to do?

                    jdaviescoatesJ Offline
                    jdaviescoatesJ Offline
                    jdaviescoates
                    wrote on last edited by
                    #10

                    I just logged into my server and ran:

                    ``chmod 600 /home/yellowtent/platformdata/sftp/ssh/ssh_host_rsa_key

                    Then restarted the sftp service.

                    But when I try to Sync my Publii website nothing at all appears within Surfer.

                    @timconsidine @nebulon help!

                    I use Cloudron with Gandi & Hetzner

                    timconsidineT 2 Replies Last reply
                    0
                    • jdaviescoatesJ jdaviescoates

                      @timconsidine said in Surfer - SFTP:

                      @nebulon cracked it !

                      Found this post : https://forum.cloudron.io/post/45417

                      Doing the chmod and restarting the sftp service allows access.

                      Does this mean there is an issue in Surfer which needs attention ? Or in the Cloudron config ?

                      I'm just trying to get Publii working with Surfer and SFTP too but I'm a little unclear what I'm supposed to do?

                      timconsidineT Offline
                      timconsidineT Offline
                      timconsidine
                      App Dev
                      wrote on last edited by timconsidine
                      #11

                      @jdaviescoates after I followed the advice in https://forum.cloudron.io/post/45417 which is basically
                      chmod 600 /home/yellowtent/platformdata/sftp/ssh/ssh_host_rsa_key , then it all sprang into life.
                      Before this, the SFTP connection specified in Publii wasn't succeeding.
                      My Publii set up is :
                      Screenshot 2022-11-04 at 18.26.51.png

                      Once the chmod was done, the [Test connection] button worked and then I could sync the website.

                      EDIT : above screenshot is WRONG !!!
                      username should be username@test.domain.tld

                      1 Reply Last reply
                      1
                      • jdaviescoatesJ jdaviescoates

                        I just logged into my server and ran:

                        ``chmod 600 /home/yellowtent/platformdata/sftp/ssh/ssh_host_rsa_key

                        Then restarted the sftp service.

                        But when I try to Sync my Publii website nothing at all appears within Surfer.

                        @timconsidine @nebulon help!

                        timconsidineT Offline
                        timconsidineT Offline
                        timconsidine
                        App Dev
                        wrote on last edited by timconsidine
                        #12

                        @jdaviescoates hmmmm, strange
                        what user are you setting in Publii Server tab ?
                        See my previous post with image of my settings

                        EDIT : but username in screenshot is wrong : should be of format user@test.domain.tld

                        1 Reply Last reply
                        1
                        • jdaviescoatesJ jdaviescoates

                          I just logged into my server and ran:

                          ``chmod 600 /home/yellowtent/platformdata/sftp/ssh/ssh_host_rsa_key

                          Then restarted the sftp service.

                          But when I try to Sync my Publii website nothing at all appears within Surfer.

                          @timconsidine @nebulon help!

                          timconsidineT Offline
                          timconsidineT Offline
                          timconsidine
                          App Dev
                          wrote on last edited by timconsidine
                          #13

                          @jdaviescoates Ha ! My connection is no longer working !
                          I updated Publii to V0.41.0 earlier today.
                          Will diagnose after some supper

                          EDIT : doh ! works with the right username

                          1 Reply Last reply
                          1
                          • jdaviescoatesJ Offline
                            jdaviescoatesJ Offline
                            jdaviescoates
                            wrote on last edited by jdaviescoates
                            #14

                            Thanks @timconsidine my SFTP connection works fine (actually did so before I ran the chmod command).

                            I'm very confused because if I go to the File Manager I can see all the publii files there:

                            f04c2d6b-55d6-4a9b-ab65-6a19c3369db5-image.png

                            But if I login to the admin of the Surfer app at wiki.safejust.space nothing seems to be there 🤔

                            1b7acc33-e520-4dfd-9885-cf6cd38fee16-image.png

                            I use Cloudron with Gandi & Hetzner

                            1 Reply Last reply
                            0
                            • jdaviescoatesJ Offline
                              jdaviescoatesJ Offline
                              jdaviescoates
                              wrote on last edited by jdaviescoates
                              #15

                              Ah

                              a7cd9949-c90a-4750-9a55-bdada447dd3f-image.png

                              I guess that's the issue...

                              But, actually, no, can't be. That must've been a temporary glitch because next time I tried:

                              2a8baab0-f990-4210-96b9-38af77431dc0-image.png

                              Moreover, as shown in my previous post the files are there, just nothing is displayed when visiting https://wiki.safejust.space

                              Confused.

                              I use Cloudron with Gandi & Hetzner

                              timconsidineT 1 Reply Last reply
                              0
                              • jdaviescoatesJ jdaviescoates

                                Ah

                                a7cd9949-c90a-4750-9a55-bdada447dd3f-image.png

                                I guess that's the issue...

                                But, actually, no, can't be. That must've been a temporary glitch because next time I tried:

                                2a8baab0-f990-4210-96b9-38af77431dc0-image.png

                                Moreover, as shown in my previous post the files are there, just nothing is displayed when visiting https://wiki.safejust.space

                                Confused.

                                timconsidineT Offline
                                timconsidineT Offline
                                timconsidine
                                App Dev
                                wrote on last edited by
                                #16

                                @jdaviescoates could be !

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

                                  Not sure if that is the issue, but SFTP is on the platform side and thus for surfer to work, the files have to be put into the public folder. This is where surfer will serve up files from.

                                  jdaviescoatesJ 1 Reply Last reply
                                  2
                                  • nebulonN nebulon

                                    Not sure if that is the issue, but SFTP is on the platform side and thus for surfer to work, the files have to be put into the public folder. This is where surfer will serve up files from.

                                    jdaviescoatesJ Offline
                                    jdaviescoatesJ Offline
                                    jdaviescoates
                                    wrote on last edited by
                                    #18

                                    @nebulon said in Surfer - SFTP:

                                    files have to be put into the public folder

                                    That was it! Please could you add these exceedingly important information in the docs? Thanks!

                                    Basically, as soon as I put /public/ in this field it all just worked as expected

                                    4a282413-cd81-4807-b7ba-070362d76a63-image.png

                                    I use Cloudron with Gandi & Hetzner

                                    nebulonN 1 Reply Last reply
                                    1
                                    • jdaviescoatesJ jdaviescoates

                                      @nebulon said in Surfer - SFTP:

                                      files have to be put into the public folder

                                      That was it! Please could you add these exceedingly important information in the docs? Thanks!

                                      Basically, as soon as I put /public/ in this field it all just worked as expected

                                      4a282413-cd81-4807-b7ba-070362d76a63-image.png

                                      nebulonN Offline
                                      nebulonN Offline
                                      nebulon
                                      Staff
                                      wrote on last edited by
                                      #19

                                      @jdaviescoates I put that info now at https://docs.cloudron.io/apps/surfer/#folder-structure

                                      jdaviescoatesJ 1 Reply Last reply
                                      2
                                      • nebulonN nebulon

                                        @jdaviescoates I put that info now at https://docs.cloudron.io/apps/surfer/#folder-structure

                                        jdaviescoatesJ Offline
                                        jdaviescoatesJ Offline
                                        jdaviescoates
                                        wrote on last edited by jdaviescoates
                                        #20

                                        @nebulon thanks! But I think it be even clearer by mentioning SFTP too and explicitly stating that that is where files need to go.

                                        Something like:

                                        The app will serve up all files from the public/ folder, so if you're uploading files using SFTP or some other method (e.g. to generate a static website) you need to put the files in the /public/ folder. If an index.html or index.htm file is located there, it will serve that one, otherwise it will show a placeholder page or, if directory listing is enabled, a listing of files and folders.

                                        I use Cloudron with Gandi & Hetzner

                                        1 Reply Last reply
                                        1
                                        • S Offline
                                          S Offline
                                          Shaun Snapp
                                          wrote on last edited by
                                          #21

                                          I had the same issue with a configuration in the FTP client I have used for around 1.5 years. All of a sudden it did not accept the password and or username. I restarted the SFTP server in Surfer, but it did not change anything. I have no problem getting in through the web interface using the same credentials (that fail in the FTP client), however.

                                          nebulonN robiR 2 Replies 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