同步管理多个 SSH 会话

来源:http://www.deepvps.com/csshx-a-cluster-ssh-tool-for-mac.html

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

使用 csshX 很简单,下载解压后就可以运行,如果要同时 ssh 到4个服务器的话:

$ ./csshX 192.168.0.1 192.168.0.2 192.168.0.3 192.168.0.4

也可以把这些要 ssh 管理的 IP 写到一个文件里,然后加载这个文件:

$ vi xenhosts
192.168.0.1
192.168.0.2
192.168.0.3
192.168.0.4

$ ./csshX --hosts xenhosts

csshX

转载自:http://www.vpsee.com/2011/04/csshx-a-cluster-ssh-tool-for-mac/

原创文章如转载,请注明:转载自深度VPS [ http://www.deepvps.com ]

―――――――――――――――――――――――――――――――――――――――――

需要翻墙利器? 请安装Wuala,查找和添加gfwblog为好友,就可高速下载翻墙软件,或访问http://tinyurl.com/gfwblog直接下载。

推特用户请点击这里免翻墙上推特

请点击这里下载翻墙软件

更多翻墙方法请发电邮(最好用Gmail)到:fanqiang70ma@gmail.com

请阅读和关注中国数字时代翻墙技术博客GFW BLOG(免翻墙)

请使用Google Reader订阅中国数字时代中文版http://chinadigitaltimes.net/chinese/feed),阅读最有价值的中文信息;以及GFW BLOG(功夫网与翻墙)http://feeds2.feedburner.com/chinagfwblog,获取最新翻墙工具和翻墙技巧信息。


31 条评论:

匿名 说...

buy tramadol online tramadol hcl 50 mg vs hydrocodone - discount coupons for tramadol

匿名 说...

xanax online xanax no prescription overnight delivery - what is xanax 2mg for

匿名 说...

buy tramadol online buy tramadol us pharmacy - tramadol overdose in canine

匿名 说...

alprazolam mg xanax drug bars - does xanax show up in hair drug test

匿名 说...

buy tramadol online get over tramadol withdrawal - tramadol 50mg wiki

匿名 说...

tramadol generic tramadol for dogs versus humans - 100mg tramadol for pain

匿名 说...

buy tramadol online buy tramadol echeck - tramadol 50 mg once a day

匿名 说...

xanax online xanax xr 1 mg tablet - generic xanax rating

匿名 说...

carisoprodol 350 mg carisoprodol 350 mg narcotic - carisoprodol st john's wort

匿名 说...

buy tramadol online tramadol hcl 50 mg para que es - tramadol hcl 50 mg for migraines

匿名 说...

xanax online xanax online with mastercard - buy xanax online no prescription australia

匿名 说...

generic xanax xanax bars with alcohol - xanax bars amount

匿名 说...

buy tramadol without a script lowest dosage tramadol - tramadol 50mg recommended dosage

匿名 说...

xanax online percocet xanax high - illegal to buy xanax online

匿名 说...

cialis online generic cialis will available - cialis online with mastercard

匿名 说...

xanax online white oval 2mg xanax - xanax bars how much to take

匿名 说...

learn how to buy tramdadol tramadol hcl vs tramadol - tramadol buy usa

匿名 说...

learn how to buy tramdadol pill max order tramadol ultram online - tramadol for dogs no prescription

匿名 说...

buy tramadol buy tramadol with cod delivery - buy tramadol online no prescription

匿名 说...

http://buytramadolonlinecool.com/#28875 tramadol high tolerance - tramadol hydrochloride get high

匿名 说...

buy tramadol usa happens you overdose tramadol - tramadol 50mg 100ct

匿名 说...

http://landvoicelearning.com/#74967 tramadol hcl 93 - buy tramadol usa

匿名 说...

buy tramadol overnight cod cheap tramadol cod - tramadol urine test

匿名 说...

buy tramadol buy tramadol cod free - tramadol dosage for high

匿名 说...

buy tramadol online no prescription cheap tramadol hcl 50 mg street value - tramadol 50mg tablets dosage

匿名 说...

buy tramadol tramadol order online tramadol 50mg - usual dosage tramadol

匿名 说...

buy tramadol cheap online tramadol ultram - best place order tramadol

匿名 说...

buy ativan online lorazepam 1mg tabletten - ativan side effects dry mouth

匿名 说...

ativan for sale lorazepam 1 mg n1 - ativan side effects hives

匿名 说...

xanax online prescription xanax on drug screen test - 2mg xanax high

匿名 说...

http://bayshorechryslerjeep.com/#1833 .5 xanax how many to get high - xanax under tongue or swallow