A polished, native-feeling GTK3 desktop application for Deepin OS (and any Linux system) that makes SSH terminal connections and SSHFS filesystem mounting simple, visual, and colorful — no complex terminal commands required.
Created by Cyrus
- 💻 Interactive SSH Sessions: Launch single-click terminal sessions using your system's default terminal emulator (
deepin-terminal,xterm,gnome-terminal, etc.). - 🗄 SSHFS Remote Mounting: Mount remote filesystems (servers, NAS, Android Termux) directly into your local filesystem and open them in your file manager (
dde-file-manager,nautilus,dolphin). - 📱 Android Termux Support: Out-of-the-box support for Termux phones over WiFi/LAN with default port
8022and automatic remotesftp-serverpath detection. - 🔐 Non-Interactive Password Support: Optional password authentication via secure
password_stdinpiping, as well as passwordless SSH key authentication. - 📂 Smart Path Normalization: Automatically converts paths like
~phoneinto~/phone(/home/username/phone) to prevent mount location errors. - ✨ Vibrant Glassmorphic UI: High-contrast modern dark ocean theme with glowing action buttons and real-time status indicators.
- 🛡 Security First: No
shell=True, safe subprocess argument passing, no stored plain-text passwords on disk, and rootless FUSE mounts. - ⚡ Live Mount Monitoring: Automatically checks
/proc/mountsand cleans up stale/broken connection endpoints (ENOTCONN).
┌─────────────────────────────────────────────────────────────┐
│ 🌐 SSHBridge SSH & SSHFS Manager │
├─────────────────────────────────────────────────────────────┤
│ │
│ SSHBridge │
│ Connect to remote machines via SSH or mount them with SSHFS│
│ │
│ ┌──────────────────┐ ┌──────────────────┐ │
│ │ 💻 │ │ 🗄 │ │
│ │ SSH │ │ SSHFS │ │
│ │ Open an │ │ Mount a remote │ │
│ │ interactive │ │ filesystem and │ │
│ │ terminal session │ │ browse it locally │ │
│ └──────────────────┘ └──────────────────┘ │
│ │
│ Active Mounts │
│ 🟢 Phone Storage u0_a413@10.134.140.19:/data/... │
│ Local: /home/cyrus/phone │
│ [📁 Open Files] [⏏ Unmount] │
│ │
│ Saved Connections [+ SSH] [+ SSHFS] │
│ 🖥 Termux Phone u0_a413@10.134.140.19:8022 │
│ 🖥 Production Server ubuntu@192.168.1.100:22 │
│ │
└─────────────────────────────────────────────────────────────┘
git clone https://github.com/Cyrus/sshbridge.git
cd sshbridge
python3 -m sshbridgechmod +x build.sh
./build.shSSHBridge will be installed to ~/.local/bin/sshbridge and added to your application launcher.
./build.sh --system- Open Termux on your phone and install OpenSSH:
pkg update && pkg install openssh - Set a password for your Termux user:
passwd
- Find your phone's WiFi IP address:
ifconfig
- Start the SSH server in Termux:
sshd
- Open SSHBridge on your desktop, choose SSHFS, and enter:
- Host / IP: Your phone's IP (e.g.
10.134.140.19) - Username: Your Termux username (e.g.
u0_a413— find it by typingwhoamiin Termux) - Password: Your Termux password
- Port:
8022 - Remote Path:
/data/data/com.termux/files/home(or/sdcardfor internal storage) - Local Mount:
~/phone
- Host / IP: Your phone's IP (e.g.
- Click ⛰ Mount & Open Files.
| Component | Technology |
|---|---|
| Language | Python 3.9+ |
| UI Toolkit | GTK3 via PyGObject (python3-gi) |
| Styling | Custom GTK CSS (Obsidian Ocean Dark Theme) |
| Config Persistence | JSON storage in ~/.config/sshbridge/ |
| SSH Client | System ssh (OpenSSH) |
| SSHFS Backend | System sshfs + fusermount |
| Mount Monitor | Live /proc/mounts polling via GLib timer |
SSHBridge includes a comprehensive unit test suite covering input validation, path normalization, and subprocess argv safety contracts.
python3 -m unittest discover -s sshbridge/tests -vAll 61 unit tests pass with 100% success rate.
sshbridge/
├── sshbridge/ # Python core package
│ ├── __init__.py # Version metadata
│ ├── __main__.py # Executable entry point
│ ├── app.py # Gtk.Application manager
│ ├── window.py # Main GTK window & navigation
│ ├── core/
│ │ ├── config.py # Connection storage & serialization
│ │ ├── detector.py # System tool auto-detection
│ │ ├── mount_monitor.py # Live mount polling daemon
│ │ ├── ssh_runner.py # SSH terminal command launcher
│ │ ├── sshfs_runner.py # SSHFS mount/unmount & fallback runner
│ │ └── validator.py # Input validation & path normalizer
│ ├── pages/
│ │ ├── home.py # Home dashboard
│ │ ├── ssh_form.py # SSH connection form
│ │ └── sshfs_form.py # SSHFS connection form
│ ├── widgets/
│ │ ├── connection_card.py # Connection item card
│ │ ├── mount_row.py # Active mount status widget
│ │ └── notification.py # In-app alert bar
│ ├── resources/
│ │ └── style.css # Premium GTK CSS design system
│ └── tests/
│ ├── test_validator.py # Validator & path normalizer tests
│ ├── test_ssh_runner.py # SSH command runner tests
│ └── test_sshfs_runner.py # SSHFS command runner tests
├── data/
│ ├── com.deepin.sshbridge.desktop # Desktop launcher entry
│ └── icons/hicolor/scalable/apps/
│ └── sshbridge.svg # Application SVG icon
├── build.sh # Installation script
├── uninstall.sh # Uninstallation script
├── requirements.txt # System dependencies notes
└── README.md # Project documentation
Cyrus
- GitHub: @Cyrus
This project is licensed under the MIT License — free to use, modify, and share.