使用 csshX 同步管理多个 SSH 会话

栏目: 服务器 · 发布时间: 5年前

内容简介:终端登录管理方案非常成熟除了耳熟能详的跨平台付费方案 SeureCRT,Windows 有 Xshell,macOS 有 iTerm2,不过在 macOS 下想用到类似 SecureCRT 和 Xshell 一样的 Send to all 功能可能就没有这么方便了,而 csshX 正好可以满足批量管理操作的需求使用 csshX 同步管理多个 SSH 会话2018 年 11 月 26 日 - 初稿

终端登录管理方案非常成熟除了耳熟能详的跨平台付费方案 SeureCRT,Windows 有 Xshell,macOS 有 iTerm2,不过在 macOS 下想用到类似 SecureCRT 和 Xshell 一样的 Send to all 功能可能就没有这么方便了,而 csshX 正好可以满足批量管理操作的需求

使用 csshX 同步管理多个 SSH 会话

更新历史

2018 年 11 月 26 日 - 初稿

阅读原文 - https://wsgzao.github.io/post/csshx/

扩展阅读

csshx - https://github.com/brockgr/csshx

csshx 简介

As csshX is a command line tool, no special installation is needed. It may

be copied into a directory in your path, (e.g. /usr/local/bin) for your

convenience.

The software has been tested on Mac OS X 10.5, 10.6 and 10.7 with the default

Perl installation - no additional Perl modules are required.

DOCUMENTATION:

The documentation for csshX is self contained. Please run:

csshX --man

使用 brew 安装 csshx

Name: csshx

Use: Cluster ssh tool for Terminal.app

URL: https://github.com/brockgr/csshx

# 安装 homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
# 安装 csshx
brew install csshx

csshx 使用

当我们管理数十台或更多 Linux 服务器的时候,往往需要在每台服务器上执行同样的命令,比如我们想一次查看 10 台服务器(node)上系统负载情况,或者想知道哪台服务器有剩余内存可以分给新客户,又或者想执行 df 命令看看哪个服务器上还有多的硬盘空间等等,除了可以用脚本或 工具 统一收集这些信息外,我们还可以考虑使用一些同步管理多个 SSH 会话的小工具来帮助管理多台服务器,节省时间提高管理效率。在 Linux 上可以用 pdsh、ClusterSSH 和 mussh;在 Mac 上可以用 csshX.

# 使用 csshX 很简单,如果要同时 ssh 到 4 个服务器可以直接传递 IP
csshX 192.168.0.1 192.168.0.2 192.168.0.3 192.168.0.4

# 也可以把这些要 ssh 管理的 IP 写到一个文件里,然后加载这个文件 
vi hosts
192.168.0.1
192.168.0.2
192.168.0.3
192.168.0.4

csshX --hosts hosts

以上所述就是小编给大家介绍的《使用 csshX 同步管理多个 SSH 会话》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Ordering Disorder

Ordering Disorder

Khoi Vinh / New Riders Press / 2010-12-03 / USD 29.99

The grid has long been an invaluable tool for creating order out of chaos for designers of all kinds—from city planners to architects to typesetters and graphic artists. In recent years, web designers......一起来看看 《Ordering Disorder》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

html转js在线工具
html转js在线工具

html转js在线工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具