Pair plain Linux servers with the LibrePortal app through a one-time invite
Find a file
2026-12-03 11:06:45 +00:00
bin 0.1.1: one-line installer (checksum + signature checked, --version, --no-invite), reproducible deb 2026-12-03 11:06:45 +00:00
tests 0.1.1: one-line installer (checksum + signature checked, --version, --no-invite), reproducible deb 2026-12-03 11:06:45 +00:00
tools 0.1.1: one-line installer (checksum + signature checked, --version, --no-invite), reproducible deb 2026-12-03 11:06:45 +00:00
.gitignore Package build, licence 2026-12-02 20:56:48 +00:00
install.sh 0.1.1: one-line installer (checksum + signature checked, --version, --no-invite), reproducible deb 2026-12-03 11:06:45 +00:00
LICENSE Package build, licence 2026-12-02 20:56:48 +00:00
README.md 0.1.1: one-line installer (checksum + signature checked, --version, --no-invite), reproducible deb 2026-12-03 11:06:45 +00:00

LibreAccess

A tiny helper for plain Linux servers (no Docker, no apps). libreaccess invite prints a one-use, 10-minute invite (link, code, QR) that the LibrePortal app's "Connect an existing server" takes: the app's key lands on the server and the server's SSH host fingerprint is pinned from the invite.

Install

On a Debian or Ubuntu server, one line installs it and shows the invite:

curl -fsSL https://get.libreportal.org/libreaccess.sh | sudo bash

The installer checks the package's published sha256 and its signature (the LibrePortal release key) before installing anything. Run it again to update. It shows the invite for the user who ran sudo, replacing an unused earlier one, and never adds keys.

… | sudo bash -s -- --version v0.1.1     # a chosen release (or: … | sudo LIBREACCESS_VERSION=v0.1.1 bash)
… | sudo bash -s -- --no-invite          # install or update only

Rather not pipe into a shell? Download the package and its checksum, check it, install it:

curl -fsSLO https://libreportal.org/download/libreaccess-linux.deb
curl -fsS https://libreportal.org/download/libreaccess-linux.json; sha256sum libreaccess-linux.deb   # the two must match
sudo apt install ./libreaccess-linux.deb && sudo libreaccess invite

Every release is also on https://git.libreportal.org/LibrePortal/LibreAccess/releases with .sha256 and .minisig files.

Use

sudo libreaccess invite            # for the sudo user; --user NAME, --json, --minutes N, --scheme NAME
libreaccess devices [--json]       # keys this tool added
sudo libreaccess revoke SHA256:…   # remove one of them
libreaccess status [--json]

It writes only authorized_keys lines of its own, runs no service, opens no port and changes no SSH setting. invite --json prints one JSON line on stdout for scripts (never log it: it is a credential until used). Tests: tests/run.sh (a throwaway sshd as the current user) and tests/installer.sh (the installer in fresh containers).