Files
lazyssh/README.md
T

134 lines
3.9 KiB
Markdown
Raw Normal View History

2025-08-27 16:56:42 +01:00
<div align="center">
<img src="./docs/logo.png" alt="lazyssh logo" width="600" height="600"/>
</div>
2025-08-13 10:39:40 +01:00
---
2025-08-27 16:56:42 +01:00
Lazyssh is a terminal-based, interactive SSH manager inspired by tools like lazydocker and k9s — but built for managing your fleet of servers directly from your terminal.
<br/>
With lazyssh, you can quickly navigate, connect, manage, and transfer files between your local machine and any server defined in your ~/.ssh/config. No more remembering IP addresses or running long scp commands — just a clean, keyboard-driven UI.
## 🎥 Demo
2025-08-30 14:59:41 +01:00
<div align="center">
<figure>
<img src="./docs/loader.png" alt="App starting splash/loader" width="800" />
<figcaption>Startup splash / loader</figcaption>
</figure>
<br/>
<figure>
<img src="./docs/list server.png" alt="Server list view" width="900" />
<figcaption>Scrollable server list with pins and status</figcaption>
</figure>
<br/>
<figure>
<img src="./docs/search.png" alt="Fuzzy search servers" width="900" />
<figcaption>Fuzzy search to quickly filter servers</figcaption>
</figure>
<br/>
<figure>
<img src="./docs/add server.png" alt="Add a new server" width="900" />
<figcaption>Add a new server via the UI form</figcaption>
</figure>
<br/>
<figure>
<img src="./docs/ssh.png" alt="SSH connection details" width="900" />
<figcaption>SSH into the selected server</figcaption>
</figure>
</div>
2025-08-27 16:56:42 +01:00
2025-08-13 10:39:40 +01:00
## ✨ Features
2025-08-27 16:56:42 +01:00
### Server Management (current)
- 📜 Read & display servers from your `~/.ssh/config` in a scrollable list.
- Add a new server from the UI by specifying alias, host/IP, username, port, identity file.
- ✏ Edit existing server entries directly from the UI.
- 🗑 Delete server entries safely.
- 📌 Pin / unpin servers to keep favorites at the top.
- 🏓 Ping server to check status.
2025-08-14 11:51:07 +01:00
2025-08-27 16:56:42 +01:00
### Quick Server Navigation
- 🔍 Fuzzy search by alias, IP, or tags.
- 🖥 Onekeypress SSH into the selected server (Enter).
- 🏷 Tag servers (e.g., prod, dev, test) for quick filtering.
- ↕️ Sort by alias or last SSH (toggle + reverse).
2025-08-13 10:39:40 +01:00
2025-08-14 11:51:07 +01:00
2025-08-27 16:56:42 +01:00
### Upcoming
- 📁 Copy files between local and servers with an easy picker UI.
- 📡 Port forwarding (local↔remote) from the UI.
- 🔑 Enhanced Key Management:
- Use default local public key (~/.ssh/id_ed25519.pub or ~/.ssh/id_rsa.pub)
- Paste custom public keys manually
- Generate new keypairs and deploy them
- Automatically append keys to ~/.ssh/authorized_keys with correct permissions
2025-08-13 10:39:40 +01:00
---
## 📦 Installation
2025-08-13 10:39:40 +01:00
### Option 1: Download Binary from Release
2025-08-27 16:56:42 +01:00
Download the latest release from [GitHub Releases](https://github.com/Adembc/lazyssh/releases):
2025-08-27 16:56:42 +01:00
```bash
# Download and extract (example)
curl -JLO https://github.com/Adembc/lazyssh/releases/download/v0.1.0/lazyssh-darwin-arm64.tar.gz
tar -xzf lazyssh-darwin-arm64.tar.gz
# Make it executable and move to PATH
chmod +x lazyssh-darwin-arm64
sudo mv lazyssh-darwin-arm64 /usr/local/bin/lazyssh
# run it
lazyssh
```
### Option 2: Build from Source
Requires **Go 1.22+**
```bash
# Clone the repository
git clone https://github.com/Adembc/lazyssh.git
cd lazyssh
# Build for macOS
make build
./bin/lazyssh
# Or Run it directly
make run
```
2025-08-14 11:51:07 +01:00
---
2025-08-27 16:56:42 +01:00
## ⌨️ Key Bindings
| Key | Action |
|---|---|
| / | Toggle search bar |
| ↑/↓ | Navigate servers |
| Enter | SSH into selected server |
| c | Copy SSH command to clipboard |
| g | Ping selected server |
| r | Refresh background data |
| a | Add server |
| e | Edit server |
| t | Edit tags |
| d | Delete server |
| p | Pin/Unpin server |
| s | Toggle sort field |
| S | Reverse sort order |
| q | Quit |
Tip: The hint bar at the top of the list shows the most useful shortcuts.
---
## 🙏 Acknowledgments
- Built with [tview](https://github.com/rivo/tview) and [tcell](https://github.com/gdamore/tcell).
- Inspired by [k9s](https://github.com/derailed/k9s) and [lazydocker](https://github.com/jesseduffield/lazydocker).