ssher

Crates.iossher
lib.rsssher
version
sourcesrc
created_at2024-07-08 09:53:43.388307
updated_at2025-02-13 08:08:23.33339
descriptionssher is an easy-to-use command line tool for connecting to remote servers.
homepagehttps://github.com/poneding/ssher-rs
repositoryhttps://github.com/poneding/ssher-rs
max_upload_size
id1295586
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Pone Ding (poneding)

documentation

README

ssher

English | 简体中文

ssher is an easy-to-use command line tool for connecting to remote servers.

Installation

cargo install ssher

Usage

  1. Select a server and connect
ssher
ssher -s <server>
  1. Add a server
ssher add
  1. Remove servers
# remove, rm
ssher rm
ssher rm <server_a> <server_b>
  1. List servers
# list, ls
ssher ls
  1. Rename a server
ssher rename
ssher rename <server_a>
  1. Edit a server
ssher edit
ssher edit <server>
  1. Check version
# version, v
ssher v
  1. Help
ssher help

Completions

# bash
source <(ssher completion bash)
source <(COMPLETE=bash ssher)

# zsh
source <(ssher completion zsh)
source <(COMPLETE=bash zsh)

# fish
ssher completion fish | source
source (COMPLETE=fish ssher | psub)

# powershell
ssher completion powershell > ssher.ps1
. .\ssher.ps1
$env:COMPLETE = "powershell"
ssher | Out-String | Invoke-Expression

You can add the command to your shell's profile e.g. ~/.bashrc or ~/.zshrc to enable completions for each session.

Configuration

The configuration file is saved in the ~/.ssher.yaml file.

Troubleshooting

  1. MacOS default bash version is too low, you may occur the following error when using completions source <(COMPLETE=bash ssher):
$ source <(COMPLETE=bash ssher)
error: Broken pipe (os error 32)

Solutions:

  • Use the following command to upgrade bash:
brew install bash
  • Generate completions to a file and source it:
COMPLETE=bash ssher > .ssher_bash_completion.sh
source .ssher_bash_completion.sh
Commit count: 25

cargo fmt