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 ?
-
-
-
-
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.
-
-
@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 thischmod
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.
-
@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 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!
-
@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 :
Once the
chmod
was done, the[Test connection]
button worked and then I could sync the website.EDIT : above screenshot is WRONG !!!
username should beusername@test.domain.tld
-
@jdaviescoates hmmmm, strange
what user are you setting in Publii Server tab ?
See my previous post with image of my settingsEDIT : but username in screenshot is wrong : should be of format
user@test.domain.tld
-
@jdaviescoates Ha ! My connection is no longer working !
I updated Publii to V0.41.0 earlier today.
Will diagnose after some supperEDIT : doh ! works with the right username
-
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:
But if I login to the admin of the Surfer app at wiki.safejust.space nothing seems to be there
-
Ah
I guess that's the issue...
But, actually, no, can't be. That must've been a temporary glitch because next time I tried:
Moreover, as shown in my previous post the files are there, just nothing is displayed when visiting https://wiki.safejust.space
Confused.
-
@jdaviescoates could be !
-
@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
-
@jdaviescoates I put that info now at https://docs.cloudron.io/apps/surfer/#folder-structure
-
@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 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.
-
@Shaun-Snapp do you still have the issue? Also I wonder what kind of SFTP you have restarted in the app, as the SFTP service is implemented in the sftp addon service of the platform not in surfer.
-
@nebulon Yes -- and to your question. I just typed this in at the Surfer prompt. /etc/init.d/ssh restart
I am no expert in restarting services -- but it responded with this.
root@5995ab0f-bf9c-46b0-9095-XXX:/app/code# /etc/init.d/ssh restart
- Restarting OpenBSD Secure Shell server sshd [ OK ]
root@5995ab0f-bf9c-46b0-9095-XXX:/app/code#
But I have the same problem. I want to emphasize I made no change. At first I thought the library WiFi I was on was blocking the FTP. But then I switched to my phone as the hotspot and had the same issue.
- Restarting OpenBSD Secure Shell server sshd [ OK ]
-
@Shaun-Snapp well that sshd is not used at all and I am surprised this script didn't fail as there is nothing to restart
Can you check the logs of the sftp service in the services view of you Cloudron dashboard? sftp itself is provided as a service to apps and some apps like surfer enable that, but the sftp service is not really attached to the surfer app instance or such.