Repository navigation
A security release: upgrade. ssh_download wrote any local path it was given,
including for servers in readonly or restricted mode
(GHSA-2v9g-gm8g-mxgj,
high, found by the maintainer). Every release from 3.0.0 is affected. One thing
behaves differently on purpose: a download from a readonly or restricted
server is now refused outside ~/.ssh-manager/transfers; if you download to a
folder of your own, set TRANSFER_ROOT for that server (see below). Nothing else
changes (the release pipeline upgrades 3.8.5, 3.8.6, 3.8.7, every 4.0.x, 4.1.0,
4.2.0, 4.3.0, 4.3.1, 4.3.2 and 4.3.3 from the registry to this version and back).
The Windows installer is still not Authenticode-signed, for the same reason
as 4.0.0: Windows shows "Windows protected your PC", More info → Run anyway,
and ssh-manager app checks the installer against the SHA-256 in
release-manifest-win32.json. macOS builds are signed and notarized.
Security
- A server in
readonlyorrestrictedmode can no longer have a download written
anywhere on this machine.ssh_downloadwrites a local file and never looked at
the path, in any mode, and is not blocked inreadonlyorrestrictedbecause it
changes nothing on the server. An agent that cannot run a command on such a server
could still create a file there (a redirect to/tmpis allowed inreadonly) and
download it over~/.zshrc, or into~/.ssh/authorized_keys, which a later shell
or login then ran. The local side of a transfer now has a transfer root: a
readonlyorrestrictedserver downloads into~/.ssh-manager/transfers(made
the first time, private to you; a relative local path is read from it), and any
server can name its own folder withSSH_SERVER_<NAME>_TRANSFER_ROOT(TOML:
transfer_root), which then also holdsssh_uploadandssh_syncto it. A path is
judged by where it really is after following links, a link as the file is refused,
and a download is received beside its place and moved there, so a failed one leaves
no half file. Servers inunrestrictedmode with no root are not filtered, as
before. If you download from areadonlyorrestrictedserver to a folder of
your own, setTRANSFER_ROOTto it: a download elsewhere is refused with a message
that names the folder. Found while comparing this project with another SSH server
for MCP that confines its transfers the same way.
Install or update: npm install -g mcp-ssh-manager@4.3.4 (or npm update -g mcp-ssh-manager), or download the desktop application below; the 4.x application updates itself.