SFTP Download of Single Files in Root Fails When Login Directory Is Root Folder

Ask how to do things or if a certain feature is available in the program.
Post Reply
sparky
Posts: 6
Joined: 27 Nov 2025 22:34

SFTP Download of Single Files in Root Fails When Login Directory Is Root Folder

Post by sparky »

I’ve run into a reproducible issue (at least on my end) with SFTP in RJ TextEd when my FTP/SFTP user login lands directly in the site’s root directory (public_html). FTP can be made to work with a workaround, but SFTP consistently fails.

Symptoms (SFTP)
I can connect via SFTP, browse folders, and upload files normally.
Single-file downloads in the root folder appear to succeed but never show up in the local folder.
Folder synchronization works for subfolders. Using “Synchronize Info…” on any root-level file causes an “out of bounds” error and crashes RJ TextEd.
The Remote Folder path cannot be selected or typed when the login directory is the server home path — RJ doesn’t allow selecting the folder I’m already in.

Workaround (FTP only)
I can get FTP (not SFTP) to work using this odd sequence:
Create a new FTP connection.
When RJ prompts me to choose a remote folder, it won’t let me select the login directory (/public_html).
I must purposely select a different/incorrect folder to make the Open button available.
After saving, I manually edit the remote path to /public_html.
FTP downloads now work. (But only if Passive Mode is OFF. With Passive Mode ON, RJ hangs.)

Even with matching settings, SFTP still cannot download root-level files.

All of these connections (same host, same login, same root folder, same paths) work fine in FileZilla for both FTP and SFTP, so the issue appears specific to RJ TextEd’s handling of SFTP root-folder logins, remote path selection, and file downloads at the login directory level.

I do have SFTP working as expected in RJ but only on servers where my FTP login does NOT drop me right into the public_html folder.

Thanks in advance for any advice!
User avatar
Rickard Johansson
Site Admin
Posts: 6884
Joined: 19 Jul 2006 14:29

Re: SFTP Download of Single Files in Root Fails When Login Directory Is Root Folder

Post by Rickard Johansson »

I can't reproduce your issues. I've tried using OpenSSH on Linux Mint, but everything I've tried works fine.

I've made some changes in the next release though. Not sure it will make any difference...

Where do you find "Synchronize Info..."? What program version are you using?

Create a new FTP connection.
When RJ prompts me to choose a remote folder...
Again, what version are you using...?
sparky
Posts: 6
Joined: 27 Nov 2025 22:34

Re: SFTP Download of Single Files in Root Fails When Login Directory Is Root Folder

Post by sparky »

Thanks!

I'm using the Sites and FTP functionalities in RJ version 16.52, and I can repeat this behaviour every time. And I just noticed that uploads are problematic too because when I look in folders on the remote server, they're all duplicated, like:

wp-content/
>>>>wp-content/
>>>>>>>>>wp-content/

Again, this is only happening on sites where the FTP login drops me right into /public_html/. (The FTP user file path isn't something that I can change, that's how this particular server works.) My comparison tests with FileZilla are fine, no issues, this is only happening with RJ TextEd.

There are two "synchronize" options in the Sites panel when you right-click a file.

I'm not sure what OpenSSH has to do with this.
User avatar
Rickard Johansson
Site Admin
Posts: 6884
Joined: 19 Jul 2006 14:29

Re: SFTP Download of Single Files in Root Fails When Login Directory Is Root Folder

Post by Rickard Johansson »

I think I've fixed your issues. Would you mind testing this version?

https://www.rj-texted.se/downloads/TextEd.zip (Download and replace you current program file)
sparky
Posts: 6
Joined: 27 Nov 2025 22:34

Re: SFTP Download of Single Files in Root Fails When Login Directory Is Root Folder

Post by sparky »

Hi! Wow, thanks! I did a couple of quick tests and this does appear to have fixed my problems. I'll probe a bit more and update if I run into anything unexpected, but so far, so good! Thanks again!!
Post Reply