Crates.io | rgoto |
lib.rs | rgoto |
version | 0.1.0 |
source | src |
created_at | 2024-10-12 08:54:43.2248 |
updated_at | 2024-10-12 08:54:43.2248 |
description | rgoto is a Rust-based command-line tool that reads your SSH configuration file (~/.ssh/config), presents a list of configured hosts, and allows you to select one to SSH into interactively. This work is partially inspired by goto. Also, this project borrows and modifies some codes from cliclack to support hjkl and index based navigation. |
homepage | |
repository | |
max_upload_size | |
id | 1406369 |
size | 77,088 |
rgoto
is a Rust-based command-line tool that reads your SSH configuration file (~/.ssh/config
), presents a list of configured hosts, and allows you to select one to SSH into interactively.
This work is partially inspired by goto.
Also, this project borrows and modifies some codes from cliclack to support hjkl
and index based navigation.
~/.ssh/config
file.ssh
command to establish an interactive SSH session.One-Liner
cargo install --git https://github.com/JiwanChung/rgoto --locked
Ensure you have Rust installed. You can install Rust using rustup.
Build the project:
cargo build --release
Move the executable to appropriate places pointed by $PATH
.
cp ./target/release/rgoto $HOME/.local/bin
Run the project:
rgoto
Follow the prompts to select a host from your SSH config and connect.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please feel free to submit a pull request or open an issue for any bugs or feature requests.