Sync your Keepass password manager
This tutorial will explain how to setup LocalXpose in your server to use SFTP with KeePass.
This tutorial assumes you have already installed LocalXpose & logged in (see getting started & cli ), also you have installed and setup openssh-server.
The command below will reserve an endpoint with custom port 2222 and region set to Asia Pacific.
$ loclx endpoint reserve --port 2222 --region ap
If port '2222' is already reserved, you can use any other port.
To keep LocalXpose running in background during boot we create a localxposessh.service unit file.
sudo nano /etc/systemd/system/localxposessh.service
and paste the following and save the file.
[Unit]
Description=LocalXpose Service to expose SSH port
After=network-online.target ssh.service
[Service]
ExecStart=/home/pi/loclx tunnel tcp --reserved-endpoint ap-1.loclx.io:2222 --to 22
Restart=always
RestartSec=15
[Install]
WantedBy=multi-user.target
Make sure to replace 'ap-1.loclx.io:2222' with your reserved endpoint.
sudo systemctl daemon-reload && sudo systemctl enable localxposessh.service
sudo systemctl start ssh.service && sudo systemctl start localxposessh.service
If you want to use custom domain name as endpoint, you will need to add a CNAME record similar to following screenshot.

In this tutorial we used keepass2 v2.4 with plugin SftpSync enabled.
Open KeePass. Click on File > Open > Open URL.

Enter your URL along with path to your keepass database file. Also, provide your ssh authentication.

sftp: protocol (FTP over SSH)
password.xtestgo.xyz:2222 = Our custom domain name & Port ( use endpoint if you don't have domain)
/home/pi/.keepass/my_pass.kdbx = Absolute path to our keepass database file.
User name & Password = Your ssh credentials ( not keepass master password )
Once your database opens, enter your master key.

There you have it,

You can now Edit & Save your keepass database. Your changes will be saved to your remote machine.