-
-
Notifications
You must be signed in to change notification settings - Fork 67
Snippets
Snippets let you save frequently used commands and run them with one click. No more typing the same commands over and over.
A snippet is a saved command or script that you can quickly insert into any terminal or run directly. SSH Pilot comes with 40+ pre-built snippets organized by category.
- Click the snippets button in the header bar
- Or press the keyboard shortcut assigned to snippets
The snippets panel appears as a sidebar alongside your terminal tabs.
- Open the snippets panel
- Find the snippet you want (use the search bar to filter)
- Click the snippet
- The command runs in the focused terminal and the output is shown in a toast notification
- Open the snippets panel
- Right-click a snippet
- Select Insert into Terminal
- The command text is pasted into the terminal without running it (you can edit it first)
SSH Pilot ships with snippets organized into folders:
| Category | Example Commands |
|---|---|
| System Info |
uname -a, uptime, hostname
|
| Network |
ip addr, ping, netstat, ss -tlnp
|
| Processes |
top, htop, ps aux, kill
|
| Docker |
docker ps, docker images, docker logs
|
| Systemd |
systemctl status, journalctl
|
| Disk |
df -h, du -sh, lsblk
|
| Logs |
tail -f /var/log/syslog, dmesg
|
| Security |
who, last, fail2ban status
|
Click the snippets button in the header bar, or press the keyboard shortcut assigned to snippets.
- Click the + button or New Snippet
- Enter a Name (e.g., "Update Ubuntu")
- Enter the Command (e.g.,
sudo apt update && sudo apt upgrade -y) - Optionally assign a Folder and Tags
Click Save. Your snippet is now available in the snippets panel.
Snippets can include placeholders for values you want to fill in each time:
- Use
${variable_name}in your command - When you run the snippet, SSH Pilot will prompt you for each placeholder
Example:
ssh ${user}@${host} "sudo tail -n ${lines} /var/log/syslog"
When you run this snippet, you will be prompted for user, host, and lines.
- Create folders to group related snippets
- Default folders: System Info, Network, Processes, Docker, etc.
- Create your own folders for your custom commands
- Add tags to snippets for cross-folder filtering
- Example: tag a snippet with
productionandmonitoring
- Mark frequently used snippets as favorites
- Favorites appear at the top of the panel for quick access
- Drag and drop snippets to reorder them within a folder
Use the search bar at the top of the snippets panel to filter by:
- Snippet name
- Command text
- Tags
Snippets run in the currently focused terminal. To run a snippet on a specific server:
- Click the terminal tab for that server
- Open the snippets panel
- Click the snippet you want to run
The command runs in that server's terminal.
Your snippets library is automatically included when you back up your SSH Pilot configuration. See Backup for details.
- Terminal -- Work with multiple terminals
- Keyboard Shortcuts -- Customize shortcuts
- Settings -- Configure snippet behavior
- Home
- Installation
- Quick Start
- Main Window
- Sidebar
- Connections
- Groups
- Terminal
- File Manager
- Credentials
- Key Management
- Known Hosts
- Authorized Keys
- Keyboard Quick Reference
- Omni-search
- Snippets
- Keyboard Shortcuts
- Plain Terminal Mode
- Docker Console
- Protocols
- Security
- Bitwarden & Vaultwarden
- Settings
- Isolated Mode
- Backup
- Plugins
- FAQ
- Troubleshooting