Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
8a9a0ab
settings: give ssh hosts a group and add the ssh.askpass switch
ForeverInLaw Dec 4, 2026
3cac226
ssh: connect to hosts named after a ~/.ssh/config alias through the a…
ForeverInLaw Dec 4, 2026
e64b42d
docs: design the headless server and the remote PWA
ForeverInLaw Dec 4, 2026
8b14a51
state: rebuild ssh hosts when their settings change
ForeverInLaw Dec 4, 2026
565e02f
text input: masked mode that shows bullets and keeps the text off the…
ForeverInLaw Dec 4, 2026
0bbd071
text input: shift+tab moves back, as tab moves on
ForeverInLaw Dec 4, 2026
a6d07a5
settings: leave empty ssh host fields out of config.toml
ForeverInLaw Dec 4, 2026
c734abb
list item: a right-click handler for context menus
ForeverInLaw Dec 4, 2026
b8f3955
ssh: add and edit hosts in a dialog instead of config.toml
ForeverInLaw Dec 4, 2026
1836b11
picker: edit an ssh host from the hosts picker, and show each host's …
ForeverInLaw Dec 4, 2026
f1307f0
sidebar: list ssh hosts under their groups, with a right-click menu t…
ForeverInLaw Dec 4, 2026
69c0a5b
docs: the ssh host editor, host groups and editing ~/.ssh/config hosts
ForeverInLaw Dec 4, 2026
9ff578d
host editor: keep the focused field in view, and lay the form out fro…
ForeverInLaw Dec 4, 2026
8e3eb77
settings: write new config entries in the order their fields are decl…
ForeverInLaw Dec 4, 2026
b0fe05f
askpass: classify ssh prompts and add the askpass helper protocol
ForeverInLaw Dec 4, 2026
86c30e3
ssh: let askpass answer background runs and the tmux control attach
ForeverInLaw Dec 4, 2026
4080490
secrets: keep ssh passwords and passphrases in the os keychain
ForeverInLaw Dec 4, 2026
ac8ae33
askpass: answer ssh's prompts from a broker in the app
ForeverInLaw Dec 4, 2026
0b8ddc2
app: start the askpass broker and give ssh tabs its environment
ForeverInLaw Dec 4, 2026
309e8d6
docs: describe ssh.askpass and where passwords are kept
ForeverInLaw Dec 4, 2026
7e2ccac
askpass: never read the keychain while holding a lock
ForeverInLaw Dec 4, 2026
e9c2d03
docs: the visual contract of the remote PWA
ForeverInLaw Dec 4, 2026
5813b88
askpass: match key paths whichever separators windows prints them with
ForeverInLaw Dec 4, 2026
3565dba
ssh hosts: box the imported host so the editor's source stays small
ForeverInLaw Dec 4, 2026
d82b71d
askpass: name the pane whose ssh asks, bound to its token at spawn
ForeverInLaw Dec 4, 2026
015cde8
askpass: say whether the refused answer was the saved one or a typed one
ForeverInLaw Dec 4, 2026
1a8dfc9
askpass: route each question to its pane's window and queue them per …
ForeverInLaw Dec 4, 2026
1e2ef23
toasts: sticky toasts that stay until their owner dismisses them
ForeverInLaw Dec 4, 2026
bbc38b3
ssh: answer passwords, passphrases and host keys in dialogs
ForeverInLaw Dec 4, 2026
8a1d994
host editor: save, change or remove the host's password in the keychain
ForeverInLaw Dec 4, 2026
2624826
remote: install a public key on an ssh host, as ssh-copy-id does
ForeverInLaw Dec 4, 2026
d7c0357
ssh: install your key on a host from its menu or the host editor
ForeverInLaw Dec 4, 2026
7b7c42a
docs: the ssh prompt dialogs, the host editor's password row and inst…
ForeverInLaw Dec 4, 2026
5c72b35
host editor: tab from the key file reaches the password field
ForeverInLaw Dec 4, 2026
dd8958c
ssh: keep the keyboard on ssh's question after a click in it or an ov…
ForeverInLaw Dec 4, 2026
1eb2533
settings: port forwards, agent forwarding and a startup command per s…
ForeverInLaw Dec 4, 2026
6a17eb3
remote: forward the agent, run a host's startup command and build tun…
ForeverInLaw Dec 4, 2026
3b2459b
remote: run port forwards as watched background ssh tunnels
ForeverInLaw Dec 4, 2026
0c4407c
ssh hosts: check port forwards and startup commands before saving
ForeverInLaw Dec 4, 2026
b0efe74
menu: submenus beside an entry, opened by hover or the arrow keys
ForeverInLaw Dec 4, 2026
7a70631
ssh: start and stop port forwards from a host's menu and SSH Tunnels…
ForeverInLaw Dec 4, 2026
617b5df
host editor: port forwards, agent forwarding and a startup command
ForeverInLaw Dec 4, 2026
fbc3b08
docs: port forwards as tunnels, agent forwarding and startup commands
ForeverInLaw Dec 4, 2026
8d0b324
remote: end tunnels with RedShell when it is killed, on Linux and Win…
ForeverInLaw Dec 4, 2026
d2ce10d
docs: what happens to tunnels when RedShell is killed
ForeverInLaw Dec 4, 2026
e1e6c9c
remote: browse and transfer a host's files over sftp
ForeverInLaw Dec 4, 2026
7b79953
remote: skip downloaded names that could leave the target folder
ForeverInLaw Dec 4, 2026
0a3999b
ui: folder, file, link, transfer, home and visibility icons
ForeverInLaw Dec 4, 2026
c765125
ssh: browse a host's files and transfer them in a dialog
ForeverInLaw Dec 4, 2026
c0df293
docs: browse and transfer an ssh host's files
ForeverInLaw Dec 4, 2026
01fcc5f
remote: never upload over a file, and say a cut transfer lost the con…
ForeverInLaw Dec 4, 2026
2d2796c
ssh: file browsers stop with their window and tell a slow host from a…
ForeverInLaw Dec 4, 2026
c402768
settings: add the [server] section that redshell-server reads
ForeverInLaw Dec 4, 2026
819ec8e
terminal: hand OSC 9 / OSC 777 notifications and the bell to the obse…
ForeverInLaw Dec 4, 2026
5d57122
terminal: replay the screen, scrollback and modes as ANSI for a clien…
ForeverInLaw Dec 4, 2026
f03389a
protocol: add the wire types shared by the server, the desktop and th…
ForeverInLaw Dec 4, 2026
d6080dd
terminal: let a Terminal be shared between threads
ForeverInLaw Dec 4, 2026
b1b6626
terminal: build the notification test's observer only on Unix, where …
ForeverInLaw Dec 4, 2026
713a2a1
protocol: carry folder listings, start-again details, approval sugges…
ForeverInLaw Dec 4, 2026
5d8693f
server: add redshell-server, server-owned sessions for the desktop an…
ForeverInLaw Dec 4, 2026
56deaf7
docs: describe running redshell-server, its security model and its pr…
ForeverInLaw Dec 4, 2026
aea9292
server: hand Argon2's memory back to the OS after each sign-in
ForeverInLaw Dec 4, 2026
2a0f5d4
server: stop rebuilding on every build while web/dist is missing
ForeverInLaw Dec 4, 2026
5fff7f4
terminal: replay tabs without shifting the rest of their line
ForeverInLaw Dec 4, 2026
bda926e
server: make a burst of sign-in guesses wait for the backoff
ForeverInLaw Dec 4, 2026
e493b66
server: close WebSockets whose sign-in ended outside the server
ForeverInLaw Dec 4, 2026
0f62781
server: keep finished agents finished and debounce title updates
ForeverInLaw Dec 4, 2026
5618138
server: test folder listings and the hook codex command
ForeverInLaw Dec 4, 2026
b86d09c
docs: correct how setup links renew and when CLI sign-outs apply
ForeverInLaw Dec 4, 2026
f469715
packaging: a per-user systemd unit and a .deb for redshell-server
ForeverInLaw Dec 4, 2026
a2af022
release: build redshell-server with the PWA for linux x86_64, aarch64…
ForeverInLaw Dec 4, 2026
c92a74d
ci: test the server on arm64, check the PWA, and run clippy on windows
ForeverInLaw Dec 4, 2026
4e86081
web: scaffold RedShell Remote with Vite, React and Tailwind
ForeverInLaw Dec 4, 2026
50135ae
web: add the API client, the WebSocket connection and a mock backend
ForeverInLaw Dec 4, 2026
15608a8
web: add the screens of RedShell Remote
ForeverInLaw Dec 4, 2026
789ef78
web: add the PWA icons, badge and iOS splash screens
ForeverInLaw Dec 4, 2026
dd11519
web: badge the app icon with the needs-you count and offer updates on…
ForeverInLaw Dec 4, 2026
572c41d
web: show home folders as ~ in diff headers
ForeverInLaw Dec 4, 2026
f44bf8d
web: add a script that screenshots every screen against the mock
ForeverInLaw Dec 4, 2026
9d21fd0
docs: describe RedShell Remote and add its screenshots
ForeverInLaw Dec 4, 2026
3314e82
web: type the push notification's renotify option and mark native swi…
ForeverInLaw Dec 4, 2026
3e69417
tmux: size native tabs on tmux 3.2 too, which ignores per-window sizes
ForeverInLaw Dec 4, 2026
bd384c8
server: resync clients that joined on the alternate screen when the p…
ForeverInLaw Dec 4, 2026
3190b2c
agents: settle only the approval a finished call answered; prompts an…
ForeverInLaw Dec 4, 2026
ab7e9a1
auth: name browser sessions after their user agent and keep last-seen…
ForeverInLaw Dec 4, 2026
243f1ef
agents: run the user's own codex notify after the hook posts its turn
ForeverInLaw Dec 4, 2026
7e05b17
web: serve the app for page paths with dots in them, such as host names
ForeverInLaw Dec 4, 2026
4abfde2
server: add the hosts API, editing [[ssh.hosts]] in config.toml in place
ForeverInLaw Dec 4, 2026
2beb110
auth: pair a desktop by typing its short code in a signed-in browser
ForeverInLaw Dec 4, 2026
4fddde0
auth: sign in with passkeys, manage them, and allow passkey-only acco…
ForeverInLaw Dec 4, 2026
7241ea3
push: notify subscribed browsers when a session wants attention
ForeverInLaw Dec 4, 2026
b33dfeb
push: throttle program notifications, keep endpoints out of logs and …
ForeverInLaw Dec 4, 2026
45e3683
docs: passkeys, pairing, push and the hosts API, with a Tailscale Ser…
ForeverInLaw Dec 4, 2026
77e2cfb
auth: keep passkey sign-ins apart from registrations and few per address
ForeverInLaw Dec 4, 2026
0495e8a
server: harden pairing throttles and passkey resets, test upgrades fr…
ForeverInLaw Dec 4, 2026
31dbc14
auth: a valid pairing poll no longer resets the backoff on guesses
ForeverInLaw Dec 4, 2026
d97e2d2
hosts: carry port forwards, agent forwarding and the startup command …
ForeverInLaw Dec 4, 2026
f134410
web: talk to the server's passkey, pairing, push and hosts endpoints
ForeverInLaw Dec 4, 2026
92aad72
web: edit a host's port forwards, agent forwarding and startup command
ForeverInLaw Dec 4, 2026
10b306c
web: screenshot passkeys off, passkey-only sign-in and port forwards …
ForeverInLaw Dec 4, 2026
007738c
web: end-to-end test against a real redshell-server
ForeverInLaw Dec 4, 2026
6c98476
web: make password sign-in the primary action where the server offers…
ForeverInLaw Dec 4, 2026
618f5f3
docs: RedShell Remote's passkeys, pairing, notifications and port for…
ForeverInLaw Dec 4, 2026
bd7f1e9
docs: RedShell Remote screenshots from a real server, at 2x
ForeverInLaw Dec 4, 2026
4e5705e
hosts: one set of rules for saved SSH hosts, shared by the desktop an…
ForeverInLaw Dec 4, 2026
2b9619d
terminal: let the far end of an external terminal size its grid
ForeverInLaw Dec 4, 2026
c5f8ee0
settings: list RedShell servers under [remote], and a kind for their …
ForeverInLaw Dec 4, 2026
db5d99e
remote: a client for RedShell servers: addresses, the REST API and th…
ForeverInLaw Dec 4, 2026
f6310eb
servers: a Servers settings page to add RedShell servers and sign in …
ForeverInLaw Dec 4, 2026
d87bb83
remote: attach a session started while connected once it is listed
ForeverInLaw Dec 4, 2026
f04d0c4
servers: sessions of RedShell servers in the sidebar and as tabs
ForeverInLaw Dec 4, 2026
151db22
servers: restored server tabs keep their title until the session is l…
ForeverInLaw Dec 4, 2026
391c313
servers: sign in to a server from the browser with a pairing code
ForeverInLaw Dec 4, 2026
ce5152b
hosts: the wire form of SSH hosts, shared by the desktop and the server
ForeverInLaw Dec 4, 2026
c63a146
hosts: send a saved SSH host to a RedShell server
ForeverInLaw Dec 4, 2026
5675c1e
docs: the desktop side of RedShell servers
ForeverInLaw Dec 4, 2026
9d88c8e
docs: the desktop's server client in the architecture
ForeverInLaw Dec 4, 2026
8e049ed
web: shared inline error, empty-state template, field rows and page-s…
ForeverInLaw Dec 4, 2026
e3b17b2
web: raised segments, warm light scrims, level-3 menus and a visible …
ForeverInLaw Dec 4, 2026
0364462
web: approval sheet keeps its actions still and its preview readable …
ForeverInLaw Dec 4, 2026
8d0abe0
web: session chrome: toasts above the composer, even key caps, a tidi…
ForeverInLaw Dec 4, 2026
3bea613
web: inbox rows separate badge and detail, and a failed list says so …
ForeverInLaw Dec 4, 2026
8d70407
web: new session can't start an agent that isn't installed, and compl…
ForeverInLaw Dec 4, 2026
5f9716b
web: sign-in, setup and pairing read as whole sentences on one gutter
ForeverInLaw Dec 4, 2026
e55d52b
web: host editor in grouped field rows, port forwards in a page sheet
ForeverInLaw Dec 4, 2026
5f70605
web: settings copy, key-cap font stepper and a footnote for passkeys off
ForeverInLaw Dec 4, 2026
0572152
web: the mock backend exists only in the dev server and mock builds
ForeverInLaw Dec 4, 2026
83468a9
web: screenshots serve their own mock build at device scale, in lands…
ForeverInLaw Dec 4, 2026
846d1eb
docs: RedShell Remote's visual contract after the design review
ForeverInLaw Dec 4, 2026
639d874
web: buttons in a sheet's header keep their taps
ForeverInLaw Dec 4, 2026
414a87b
docs: refresh RedShell Remote screenshots after the design review
ForeverInLaw Dec 4, 2026
902ab9a
docs: the key bar's widths add up in RedShell Remote's contract
ForeverInLaw Dec 4, 2026
fc5d58d
docs: RedShell Remote and installing the server in the readme
ForeverInLaw Dec 4, 2026
0ae9278
server: trust only our own origins and require X-RedShell on changes
ForeverInLaw Dec 4, 2026
5163ed4
server: time out slow requests and cap open connections
ForeverInLaw Dec 4, 2026
d4a5fd2
server: read X-Forwarded-For from the right and stop at junk
ForeverInLaw Dec 4, 2026
ebe5dbe
auth: never reuse credential ids, and check tokens, not just ids
ForeverInLaw Dec 4, 2026
2e5fa4b
auth: bound what a stranger can make the server log and keep
ForeverInLaw Dec 4, 2026
b8cfe4f
auth: nothing a stranger starts can lock others out
ForeverInLaw Dec 4, 2026
14c2f98
auth: passkey_required counts as a failure; shorter backoff per name
ForeverInLaw Dec 4, 2026
ddbd934
auth: re-authenticate before changes that can take an account over
ForeverInLaw Dec 4, 2026
498f148
auth: turning passkey-only on ends the password's sign-ins
ForeverInLaw Dec 4, 2026
a33a5c3
auth: tell the approver whether a pairing comes from where they are
ForeverInLaw Dec 4, 2026
03fa908
server: clamp a new session's size and bound its unread input
ForeverInLaw Dec 4, 2026
2c55ce9
server: check a hook's token before reading its body
ForeverInLaw Dec 4, 2026
97da6be
server: refuse IPv6 push targets that reach IPv4, and echo no push er…
ForeverInLaw Dec 4, 2026
881dd5c
server: audit a saved host's extra arguments and startup command
ForeverInLaw Dec 4, 2026
74febd8
server: retry a localhost test server whose port was taken
ForeverInLaw Dec 4, 2026
951afc7
docs: RedShell Remote's hardened security model
ForeverInLaw Dec 4, 2026
eb12269
server: offer only HTTP/1.1 over built-in TLS
ForeverInLaw Dec 4, 2026
4dcef77
server: a test push answers only whether it was taken
ForeverInLaw Dec 4, 2026
e989284
server: test X-Forwarded-For end to end
ForeverInLaw Dec 4, 2026
215d8aa
docs: origin, proxy and TLS notes across the server docs
ForeverInLaw Dec 4, 2026
68da51b
remote: one change header for the server, the desktop and the PWA
ForeverInLaw Dec 4, 2026
516cd62
tunnel: tests reuse one fake ssh instead of leaving a folder per run
ForeverInLaw Dec 4, 2026
4e99ec0
release: version 0.0.3
ForeverInLaw Dec 4, 2026
b9da79f
docs: one structure for the server guide, with install and the phone
ForeverInLaw Dec 4, 2026
66e04bb
docs: release notes for 0.0.3
ForeverInLaw Dec 4, 2026
6e3622d
docs: readme for the server, the phone app and the new SSH tools
ForeverInLaw Dec 4, 2026
c6951c7
docs: config reference agrees with the server guide
ForeverInLaw Dec 4, 2026
d38f69f
docs: architecture covers the server's passkeys, push, hosts and guards
ForeverInLaw Dec 4, 2026
4729005
docs: call RedShell Remote the web app in its readme and fix the icon…
ForeverInLaw Dec 4, 2026
1a5b9ce
docs: say when the server needs a restart, and name the profile ids
ForeverInLaw Dec 4, 2026
352bc99
docs: saved tab layouts keep their split ratios
ForeverInLaw Dec 4, 2026
aba7938
docs: list 0.0.3's behaviour changes and keep every bullet short
ForeverInLaw Dec 4, 2026
5ab9c95
ssh: give ssh the config file whose hosts RedShell lists
ForeverInLaw Dec 4, 2026
8383217
docs: note the ssh_config_path fix in the changelog
ForeverInLaw Dec 4, 2026
f2e1693
web: send X-RedShell: 1 on every request that changes something
ForeverInLaw Dec 4, 2026
5fbb0c9
web: confirm it's you before changes that need it
ForeverInLaw Dec 4, 2026
3d49ef4
web: say that passkey-only signs out the password's other sign-ins
ForeverInLaw Dec 4, 2026
647fdf5
web: warn on the pairing page who the device signs in as and where it is
ForeverInLaw Dec 4, 2026
a278ba0
web: stop name and host fields at the lengths the server takes
ForeverInLaw Dec 4, 2026
80862b5
web: the mock asks to confirm it's you and flags a pairing from elsew…
ForeverInLaw Dec 4, 2026
348fa9a
web: e2e covers confirming it's you and the pairing warning
ForeverInLaw Dec 4, 2026
3a2e8fa
web: screenshot the pairing warning and Confirm it's you
ForeverInLaw Dec 4, 2026
b27d2ef
docs: Confirm it's you in RedShell Remote's contract and the changelog
ForeverInLaw Dec 4, 2026
ce26055
web: e2e approves a pairing with a passkey once the last confirmation…
ForeverInLaw Dec 4, 2026
3d765b3
ci: test askpass with the windows release exe, which is a gui program
ForeverInLaw Dec 4, 2026
1f306af
docs: say where the familiar patterns in the visual contract come from
ForeverInLaw Dec 4, 2026
3dd89d4
ci: run the release askpass test with windows' own openssh too
ForeverInLaw Dec 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,60 @@ jobs:
- if: runner.os == 'Linux'
uses: ./.github/actions/linux-deps
- run: cargo test --workspace --locked
# The lint job runs on Linux; Windows-only code needs its own pass.
- if: runner.os == 'Windows'
run: cargo clippy --workspace --all-targets --locked -- -D warnings

askpass-release-windows:
# The release exe is a GUI-subsystem program, unlike the debug build the test job uses;
# ssh runs it as SSH_ASKPASS and reads the answer from its stdout.
name: askpass (windows release build)
runs-on: windows-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Rust toolchain (from rust-toolchain.toml)
run: rustup toolchain install || rustup show
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
key: release
- name: ssh-keygen opens a key through the release exe as askpass
shell: bash
run: |
set -o pipefail
# Once with the ssh-keygen on PATH (Git for Windows' MSYS build) and once with Windows'
# own OpenSSH, which starts askpass differently (posix_spawnp) and is what most users run.
for keygen in "" 'C:\Windows\System32\OpenSSH\ssh-keygen.exe'; do
REDSHELL_TEST_SSH_KEYGEN="$keygen" cargo test --release --locked -p redshell-app --test askpass -- --nocapture 2>&1 | tee askpass.log
# The test skips itself without a usable ssh-keygen; here that must not pass silently.
if grep -q "skipped:" askpass.log; then echo "::error::the askpass test was skipped"; exit 1; fi
done

server-arm64:
# The server's crates on the architecture of a Raspberry Pi.
name: test (server, linux arm64)
runs-on: ubuntu-22.04-arm
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Rust toolchain (from rust-toolchain.toml)
run: rustup toolchain install || rustup show
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- run: cargo test --locked -p redshell-server -p redshell-protocol -p redshell-terminal -p redshell-remote -p redshell-core

web:
name: web (typecheck, lint, test, build)
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
with:
node-version: 24
cache: npm
cache-dependency-path: web/package-lock.json
- run: npm ci
- run: npm run typecheck
- run: npm run lint
- run: npm test
- run: npm run build
93 changes: 92 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,99 @@ jobs:
name: ${{ matrix.name }}
path: dist/*

server:
# redshell-server with the RedShell Remote PWA embedded: a tarball everywhere and a .deb
# (with the per-user systemd unit) on Linux. The aarch64 build is the one for a Raspberry Pi
# (64-bit Raspberry Pi OS). Linux builds run on 22.04 so the binaries need glibc 2.35.
needs: version
name: server (${{ matrix.name }})
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- name: linux-x86_64
os: ubuntu-22.04
targets: x86_64-unknown-linux-gnu
deb-arch: amd64
- name: linux-aarch64
os: ubuntu-22.04-arm
targets: aarch64-unknown-linux-gnu
deb-arch: arm64
- name: macos-universal
os: macos-15-intel
targets: aarch64-apple-darwin x86_64-apple-darwin
runs-on: ${{ matrix.os }}
env:
TARGETS: ${{ matrix.targets }}
BASE_NAME: redshell-server-${{ github.event.inputs.tag || github.ref_name }}-${{ matrix.name }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
with:
node-version: 24
cache: npm
cache-dependency-path: web/package-lock.json
- name: Build the PWA
working-directory: web
run: |
npm ci
npm run build
test -f dist/index.html
- name: Rust toolchain (from rust-toolchain.toml)
shell: bash
run: |
rustup toolchain install || rustup show
rustup target add $TARGETS
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
key: server-${{ matrix.name }}
- name: Build
shell: bash
run: |
set -euo pipefail
for target in $TARGETS; do
cargo build --release --locked --target "$target" -p redshell-server
done
mkdir -p out
set -- $TARGETS
if [ $# -gt 1 ]; then
lipo -create $(printf 'target/%s/release/redshell-server ' "$@") -output out/redshell-server
lipo -info out/redshell-server
else
cp "target/$1/release/redshell-server" out/redshell-server
fi
# The PWA must be in the binary, not the placeholder page.
if ! grep -q "manifest.webmanifest" out/redshell-server; then
echo "::error::the PWA was not embedded"
exit 1
fi
out/redshell-server --version
- name: Package
shell: bash
run: |
set -euo pipefail
mkdir -p dist "$BASE_NAME"
cp out/redshell-server README.md LICENSE CHANGELOG.md docs/REMOTE.md "$BASE_NAME/"
cp "packaging/server/redshell-server@.service" "$BASE_NAME/"
tar -czf "dist/$BASE_NAME.tar.gz" "$BASE_NAME"
if [ -n "${{ matrix.deb-arch }}" ]; then
scripts/package-server-deb.sh out/redshell-server "${TAG#v}" "${{ matrix.deb-arch }}" "dist/$BASE_NAME.deb"
dpkg-deb -I "dist/$BASE_NAME.deb" | head -5
fi
cd dist
for file in *; do
if command -v sha256sum >/dev/null; then sha256sum "$file"; else shasum -a 256 "$file"; fi > "$file.sha256"
done
ls -la
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: server-${{ matrix.name }}
path: dist/*

publish:
needs: [version, build]
needs: [version, build, server]
permissions:
contents: write
# Publish whatever built, so one stuck runner doesn't block a release; re-run
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ target/
*.db
*.db-journal
.DS_Store
web/node_modules
web/dist
web/dev-dist
99 changes: 99 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,104 @@ All notable changes to this project are documented here. The format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and versions follow
[Semantic Versioning](https://semver.org/).

## [0.0.3] - 2026-12-04

This release adds `redshell-server`, which keeps shells and coding agents running on an
always-on machine such as a Raspberry Pi, for the desktop and for RedShell Remote, the web app it
serves to phones. SSH hosts also get a home in the app: an editor instead of `config.toml`,
password dialogs backed by the system keychain, port forwards and a file browser.

**Upgrading from 0.0.2.** `ssh.askpass` is on by default: with OpenSSH 8.4 or newer, ssh's
password, passphrase and host key prompts now appear in a RedShell dialog instead of the
terminal, and older clients, such as the OpenSSH 8.1 that ships with Windows 10, keep prompting
in the terminal. Set `ssh.askpass = false` to keep the terminal prompts everywhere. A host in
`[[ssh.hosts]]` whose `name` is also a `Host` alias in `~/.ssh/config` now connects through the
alias (while `ssh.import_ssh_config` is on), so the alias's `IdentityFile`, `ProxyJump` and other
options apply under the fields set in RedShell; rename the entry if it was meant to bypass the
alias. Entries RedShell adds to `config.toml` now list their keys in the order of the settings,
starting with an SSH host's `name`, and leave empty host fields out; existing entries are not
touched, so this is cosmetic.

### Added
- SSH hosts are added and edited in a dialog: *Add SSH Host…* (also the "+" next to the
sidebar's SSH hosts), *Edit SSH Host…*, a right-click menu on each host in the sidebar to
connect, edit, duplicate or delete it, and Alt+E in the *Connect to SSH Host* picker.
- Hosts can be put in groups, which the sidebar and the host picker show. Editing a host from
`~/.ssh/config` keeps the changes in RedShell and leaves the file alone; *Reset to
~/.ssh/config* drops them.
- RedShell asks for SSH passwords, passphrases and new host keys in its own dialog and can keep
passwords and passphrases in the system keychain (`ssh.askpass`, OpenSSH 8.4 or newer), also
for native tmux attach. The host editor shows, changes or removes a host's saved password.
- *Install Key on Server…* adds your public key to a host's `authorized_keys`, as `ssh-copy-id`
does, and creates an ed25519 key first if you have none.
- Port forwards (local, remote and SOCKS) on SSH hosts, run as background tunnels: start and stop
them from a host's *Port Forwarding* menu or *SSH Tunnels…*, open them with RedShell
(`auto_start`), and see in the sidebar which hosts have one up.
- The host editor sets agent forwarding (`forward_agent`) and a startup command that runs after
login, before the shell or the `attach_session` session.
- *Browse Files…* shows an SSH host's files over SFTP (from a host's or an SSH tab's menu, Alt+F
in the host picker, or *Browse SSH Host Files…*): download, upload by picking or dropping,
create, rename, delete, and open a terminal in the folder. Transfers outlive the dialog.
- `redshell-server` keeps shells, coding agents and SSH sessions running on an always-on machine,
set up in a `[server]` section of its `config.toml` ([docs/REMOTE.md](docs/REMOTE.md)). Releases
carry it for Linux (`.deb` with a per-user systemd unit, and `.tar.gz`) and for macOS.
- Behind Tailscale Serve or cloudflared on the same machine, the server trusts the proxy's
`X-Forwarded-For` without any `trusted_proxies`, so each client meets its own sign-in backoff.
- The server signs in with a password, with backoff, or a passkey (Face ID, Touch ID, Windows
Hello, a security key). Browsers and devices are listed with when they were last seen and can be
revoked, an account can turn password sign-in off, and `redshell-server user` manages accounts.
- Claude Code permission requests can be answered from any connected client or in Claude Code's
own dialog, whichever comes first, and Claude Code and Codex report when they work, wait for
input or finish. A Codex `notify` program of your own still runs.
- Web Push notifications when an agent asks for approval, waits for input or finishes, and when
a program fails or raises a notification, chosen per browser and held back while you are
typing into that session.
- RedShell Remote, the web app the server serves, for phones and browsers: an inbox of sessions
that need you, terminals with a key bar and a composer, approval sheets with diffs, new sessions
in any folder, passkeys, notifications and the server's SSH hosts, in two columns on wide screens.
- The desktop connects to RedShell servers: add them under *Settings → Servers* (`[remote]` in
`config.toml`) and sign in with a password or a short code you approve in a signed-in browser,
which says whether the request came from your own address. The token stays in the keychain.
- A *Servers* section in the sidebar lists a server's sessions with what their agents are doing.
They open as tabs that only detach when closed and come back on the next start, with an agent's
pending approval above the terminal.
- *Send to Server* in an SSH host's menu copies the host to a server, without its identity file,
through the server's hosts API, which edits its `config.toml` in place and keeps the comments.
- `redshell-protocol`, the wire types shared by the server, the desktop and (as TypeScript)
RedShell Remote.

### Changed
- `ssh.askpass` is on by default, so ssh's prompts appear in RedShell's dialog where OpenSSH 8.4 or
newer is installed.
- A saved host named after a `~/.ssh/config` alias connects through the alias, with the fields
set in RedShell passed on top (`-p`, `-l`, `HostName`).
- New entries in `config.toml` list their keys in the order of the settings, and SSH hosts leave
empty fields out.
- Shift+Tab moves back through dialogs and lists, as Tab moves on.

### Fixed
- Native tmux tabs get the right size on tmux 3.2, which ignores per-window sizes.
- Hosts listed from `ssh.ssh_config_path` connect: ssh now reads that file too (`-F`).

### Security
- `redshell-server` accepts browser requests only from its own origin (exactly `public_url` when
that is https), needs `X-RedShell: 1` on every request that changes something (protocol
version 2), and sends HSTS whenever clients reach it over https.
- Adding or removing a passkey, turning passkey-only on or off, approving a pairing and signing
out another browser or device need a re-authentication within the last five minutes.
- Turning passkey-only on ends the password's sign-ins, a password change drops pairing approvals
still waiting, and `user passwd` lists the passkeys that still sign in and takes
`--revoke-passkeys`.
- Strangers cannot fill the server's memory, log or connections: passkey sign-ins are stateless,
limits count IPv6 by /64, bodies, names, pairing requests and connections are bounded, and slow
clients time out. The sign-in backoff stops at 15 minutes per address and 2 per name.
- Push messages go only to public https endpoints on port 443, and *Browse Files…* skips
downloaded names that could leave the target folder.
- RedShell Remote asks "Confirm it's you" (a passkey or the password) before a change that needs
a re-authentication and then makes the change, and its pairing page warns that approving signs
the device in as you, with the address the request came from and a warning when that is
another network.

## [0.0.2] - 2026-12-01

This release gives RedShell its own title bar, makes it feel at home on Windows, and fixes the
Expand Down Expand Up @@ -182,5 +280,6 @@ First public preview.
themes; settings UI for fonts, opacity, background image, cursor, safety, history and
keybindings; hot-reloaded `config.toml`.

[0.0.3]: https://github.com/redstone-md/RedShell/compare/v0.0.2...v0.0.3
[0.0.2]: https://github.com/redstone-md/RedShell/compare/v0.0.1...v0.0.2
[0.0.1]: https://github.com/redstone-md/RedShell/releases/tag/v0.0.1
Loading
Loading