Skip to content

sshdeck 0.2.0

Choose a tag to compare

@ylkhn1 ylkhn1 released this 12 Nov 12:20
· 11 commits to main since this release

⚠️ Security fix: please update

Versions before 0.2.0 are affected. When you downloaded a folder, sshdeck trusted the file names the server sent. A malicious or compromised server could use names like /home/you/.bashrc or ../../.ssh/authorized_keys to write files outside the folder you chose. This is the same class of bug as CVE-2018-20685 in scp. Exploiting it requires connecting to a hostile server and downloading a folder from it. Normal servers are not a risk, but the impact is code execution on your machine, so please update.

0.2.0 drops such names as soon as a listing arrives and checks every path again before it is used. It also limits what a hostile server can do in other ways: no unbounded data, no endless listings or directory trees, timeouts on every request, and temporary files that can never replace existing ones.

sshdeck

New

  • Port forwarding. Open Menu → Port Forwarding for This Tab… to add local (-L), remote (-R) and SOCKS (-D) forwards over the tab's connection. Each forward shows its status, and an icon on the tab opens the dialog. Forwards can be saved with a connection; they come up when you connect and again after a reconnect.
  • One login per server. A second tab to the same server reuses the first tab's connection and does not ask for the password again.
  • Nested folders and your own order. Folders can contain folders. You can arrange connections and folders by drag and drop, or with Move Up, Move Down and Move to Folder….
  • Save conflicts are detected. If a file you are editing changed on the server since you opened it, sshdeck asks whether to overwrite it, save your version as a copy, or keep it local.

Improved

  • Transfers:
    • modification times are kept in both directions;
    • new remote files get the local file's permissions;
    • symlinks to folders are followed, with loop protection.
  • Drag and drop: dropping onto a folder in the tree uploads into that folder.
  • File names that are not valid UTF-8 now work. sshdeck has its own SFTP client for this; the previous library dropped the connection on such names.
  • cd tracking: works with spaces and non-ASCII characters in paths, and no longer follows you onto another server you hop to. If you enabled it before, choose File Panel Follows cd on This Server… again to update the lines in your .bashrc/.zshrc.
  • Passwordless login: uses the key ssh actually uses for the host, including IdentityFile from ~/.ssh/config, and checks afterwards that key login works.
  • Database tab: closing it no longer removes port forwards defined in your ~/.ssh/config.
  • Packages: .deb and .rpm packages are now available.

Install

System How
Debian 13+, Ubuntu 25.04+ sudo apt install ./sshdeck_0.2.0-1_amd64.deb
Fedora 42+ sudo dnf install ./sshdeck-0.2.0-1.x86_64.rpm
Arch, CachyOS, Manjaro git clone https://github.com/ylkhn1/sshdeck && cd sshdeck/packaging/aur && makepkg -si (an AUR package will follow once AUR registration reopens)
Other recent x86_64 distros Unpack sshdeck-0.2.0-x86_64-linux.tar.gz and copy the files as described in the README

The prebuilt binary needs glibc ≥ 2.39, GTK ≥ 4.16, libadwaita ≥ 1.6 and VTE ≥ 0.72 (GTK 4 build). On older systems, build from source with cargo build --release.

Upgrade notes

  • connections.ini: files from older versions load unchanged. On the first change they are saved in a new format that records nesting and order. If you later go back to 0.1.x, nested folders show up as flat folders named like Work/Servers.
  • Interface languages: English, Russian and Spanish, as in 0.1.0 (Menu → Language).