https://github.com/mabdh/lazy-ssh
Shell function to fuzzy search remote servers's ssh address and copy command to clipboard.
https://github.com/mabdh/lazy-ssh
Last synced: 3 months ago
JSON representation
Shell function to fuzzy search remote servers's ssh address and copy command to clipboard.
- Host: GitHub
- URL: https://github.com/mabdh/lazy-ssh
- Owner: mabdh
- Created: 2019-07-13T10:27:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-26T03:41:53.000Z (over 5 years ago)
- Last Synced: 2025-01-21T15:27:40.874Z (5 months ago)
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lazy-ssh
Shell function to store and fuzzy search a remote ssh address locally, and copy command to clipboard.
Inspired by [lazy-connect](https://github.com/thecasualcoder/lazy-connect) library.
## Prerequisite
1. [fzf](https://github.com/junegunn/fzf)
```
brew install fzf
```## Install
### Using Homebrew
```
brew tap mabdh/repo
brew install lazy-ssh
```### Manual
```
git clone https://github.com/mabdh/lazy-ssh ~/.lazy-ssh
sudo ln -s ~/.lazy-ssh/lazy-ssh /usr/local/bin/lazy-ssh
```### Usage
```
lazy-ssh - Shell function to store and fuzzy search a remote ssh address locally
, connect to it automatically, and copy command to clipboard.-s - Set key value of remote name and its address, 'lazy-ssh -s MyRemote-1 192.168.0.1'.
-l - List all key value remote name and its address.
-c - Clear all kv pairs.
-u - Get default username to connect to the remote.
-y - Set default username to connect to the remote, 'lazy-ssh -y remote_user'.
-h - Show this help.
```