Feature Request: SSH Sync Support

Good day,

I searched in the forum and I did not see this requested yet. Is there a way to get an SSH target as a sync option? It looks like there are several NodeJS SSH libraries that might make this an easier task for an expert in the Joplin codebase.

Thanks for your time!


Couldn’t you mount the ssh folder locally, then use local file sync?

Might be problematic on mobile I suppose.

In what context are you using SSH? I’ve only used it primarily for logging into my server and that’s all.

I just looked into it. Are you talking about rsync ?

Yeah mobile might have a problem with mounting a volume over SSH. I have other services that backup/sync to my server over SSH/SFTP using native/plugin-supported functionality and it works great. In my opinion, the least amount of services exposed to the internet as possible is just plain-ol’ good security practice. I have a WebDAV server, but other than for Joplin, I have no need to expose it to the internet.

I suppose, as a workaround (and I’m thinking out loud right now), I could tunnel WebDAV over SSH with PuTTY (I’m on Windows), which would allow Joplin to sync when I manually open that connection. I think I am happy with that? Given this purposefully-intermittent quality of my workflow, Joplin wouldn’t end up deleting all my notes because it couldn’t connect to my WebDAV server, would it?

Edit: Well, that’s not going to be very easy to do on mobile. Possible, but impractical in the least.

You could check into rclone for ssh to webdav on desktop and then leave mobile on Webdav.

Thanks! I’ll check it out. Leaving mobile on WebDAV still exposes my WebDAV server directly to the internet, doesn’t it? That’s what I’m trying to avoid by using a “lighter” service that I already have, Like SSH/SFTP.

1 Like

It will, but you could enable ssl (https) on your webdav server (if not enabled already) and use Joplin’s E2EE to make sure your notes stay private as much as possible. If you’re not already using it, you could also move from normal WebDAV to Nextcloud on something like Digital Ocean and crank up your security settings.

You’ll need to make sure you make a full sync and backup to Jex on your Desktop. Then move your Joplin folder (including .resource(s) hidden folder) to the Nextcloud instance before switching over. You’ll also need to reset Joplin on everything by uninstalling on mobile and moving your joplin-desktop folder to a new location

Thank you for the reply. I appreciate the time it took for your to work through my problem with me. Unfortunately, I just don’t think that will solve my issue and I still would like to request that SSH/SFTP sync support get added to the long list of feature requests.

1 Like

Both protocols aren’t a common enough request from users here. Neither are difficult to use but the common computer user probably wouldn’t find any value in knowing them since there are plenty of others that require almost no setup and file system sync bypasses this issue for enough users here (despite it sucking for mobile users).

I hope more people ask for this and a compromise can be made to make supporting it not be too much of an issue for the devs to keep it functional. I’m all for adding as many options as possible for users to use software in uncommon ways like this. :wink:

I would like ssh/sftp too.
I do not want to use external providers.

ssh / sftp can be configured on any router or smart TV.

And now, in order for me to work, I need a separate LXC container, and configure a web server there with webdav ...
pointless waste of resources :rage:

Yes, me too, for the Android app.

I synchronize with my NAS to avoid any third party provider, and WebDAV forces me to open a port to the web server, which is less secure than SFTP (E2E encryption does not solve the problem, here the problem is that the web server is a security hole for the whole NAS and even my local network).

For info, I use 2 other Android applications, FolderSync & KeePass, and both support SFTP.


I could use ssh/sftp too.

I would love ssh/sftp support too. The benefits I see are:

  • Easy to host my own sync server through my firewall (or over vpn)
    • ssh is much easier to maintain both in terms of security, as well as moving around
  • Alternatively, I could even just spin up a vps and host my notes

mounting over ssh is much more of a hassle, as I normally don't want to use the publicly available ssh system for much else, and as previous commenters already noted - mounting is not easy for mobile devices.


Just made an account to chime in on ssh.
Mounting volumes on mobile requires root. Thanks google.
ssh is super easy to setup and use. It does way more than just "log in" and without any extra configuration.
I was hoping joplin would be nicer than sshing into a personal server and using vim, (which works really well on mobile), but I'm not ready to hand over all my data to Dropbox, Inc or follow a big encryption guide.

1 Like

I did the same thing as logarithmicGravy99, created an account just to ask for this, then see that people have already been asking for it for quite some time. My reason for wanting to do this is I want to use Joplin on two Macs and a Windows box, and have all the notes synced to a specific directory on a Raspberry Pi. The Pi already has a bunch of stuff running on it so I do not want the extra bloat of having to add an additional server that I then have to figure out how to configure and maintain, when all I really want is to just sync to a directory on the Raspberry Pi. And SSH would be the easiest way to do that because it doesn't make any assumptions about whether the directory is already mounted; instead it just logs in and does the file transfers and logs out.

By the way when I say SSH what I probably really mean is SSHFS because I want to be able to transfer files, not open a terminal window. That may be what everyone else is wanting as well.