百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
H

hss

> 开发工具
开源

一个具有自动完成和异步执行功能的交互式并行 SSH 客户端。

380 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个具有自动完成和异步执行功能的交互式并行 SSH 客户端。

hss

简体中文README

What's hss?

hss is an interactive ssh client for multiple servers. It will provide almost the same experience as in the bash environment. It supports:

  • interactive input: based on libreadline.
  • history: responding to the C-r key.
  • auto-completion: completion from remote server on the tab key, for commands and paths.

Command is executed on all servers in parallel. Execution on one server does not need to wait for that on another server to finish before starting. So we can run a command on hundreds of servers at the same time.

A quick start

…
  • This is a screenshot

How to install it?

  • MacOS

    • ...via Homebrew:
    bash
    brew install hss
    • ...via MacPorts:
    bash
    sudo port selfupdate
    sudo port install hss
  • Linux

    • Install dependency
    bash
    ## on CentOS
    yum install readline-devel
    
    ## on Ubuntu / Debian 
    apt-get install libreadline6-dev
    • Compile and install
    bash
    make && make install
  • Or you can download the binary release here .

How to use it?

The fundamental of hss is to execute the ssh command for every host, and then show the results on the terminal. So hss supports every argument supported by the ssh command. Following is an example of the hostfile:

192.168.1.1
-p 2222 [email protected]
-p 2222 -i ~/.ssh/identity_file [email protected]
-p 2222 -oConnectTimeout=3 [email protected]

Connect to servers:

# Specify the hostfile directly
hss -f hostfile

# Or pass servers in arguments
hss -H '192.168.1.1' -H '-p 2222 [email protected]' -H '-p 2222 -i ~/.ssh/identity_file [email protected]' -H '-p 2222 -oConnectTimeout=3 [email protected]'

Passthrough of ssh arguments are supported. For example, by specify -c '-oConnectTimeout=3', sessions without a timeout configured will set its timeout on this argument.

Usage of readline

The interactive input is implemented on libreadline, supporting command and path completion from remote, history storage and searching, moving around, etc. (please refer to readline for more)

  • Command history is stored in ~/.local/state/hss/history by default (following XDG Base Directory specification). Falls back to ~/.hss_history for backward compatibility if the XDG directory cannot be created.
  • Completion of commands and paths are based on the first server in the list.
  • Path completion is available when the first input character is /, ~ or ..

Environment variables

  • HSS_HISTORY_FILE - Custom path for command history file. Takes precedence over XDG paths and legacy location.
  • XDG_STATE_HOME - Base directory for state files (defaults to ~/.local/state). History will be stored in $XDG_STATE_HOME/hss/history.

Per-host color output

Each host in your session is assigned a unique color from a rotating palette (green, yellow, blue, magenta, cyan) to make it easier to visually distinguish output from different servers in multi-host sessions.

Goals of the future versions

  • Solve the "@" suffix problem on directory symbol-link.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Cautocompletioncommand-linemultipleparallel

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具