批量SSH操作工具---OmniTTY安装

时间:2024-01-01 23:49:57

安装rote

# pwd

/tmp/rote-0.2.8

# ./configure

# make

# make install

......

mkdir -p /usr/local/include/rote

rm -f /usr/local/include/rote/*.h

cp rote.h /usr/local/include/rote

mkdir -p /usr/local/lib

cp librote.so.0.2.8 /usr/local/lib

cd /usr/local/lib && ln -sf librote.so.0.2.8 librote.so

cd /usr/local/lib && ln -sf librote.so.0.2.8 librote.so.0

chmod 755 rote-config

mkdir -p /usr/local/bin

cp -p rote-config /usr/local/bin

-----------------------------------------------------------

ROTE - Our Own Terminal Emulation Library v0.2.8

Include files installed at: /usr/local/include

Library files installed at: /usr/local/lib

rote-config executable : /usr/local/bin/rote-config

To find out what compiler arguments you should use to

compile programs that use rote, use the rote-config

program (make sure /usr/local/bin is in your path).

-----------------------------------------------------------

......

注:如果报错”Need ncurses to compile librote“,需要安装ncurses开发包,

CentOS

# yum install ncurses-devel

ubuntu

$ apt-get install libncurses5-dev

将rote的so文件加入系统查找路径里(不然omnitty运行时会提示找不到so)

# whereis librote.so.0

librote.so: /usr/local/lib/librote.so.0 /usr/local/lib/librote.so

# vim /etc/ld.so.conf.d/omnitty-x86_64.conf

添加如下内容:

/usr/local/lib

# ldconfig

安装OmniTTY

# pwd

/tmp/omnitty-0.3.0

# ./configure

# make

# make install

......

mkdir -p /usr/local/bin

cp omnitty /usr/local/bin

mkdir -p /usr/local/man/man1

cp omnitty.1 /usr/local/man/man1

......

使用

# omnitty

菜单

底栏

批量SSH操作工具---OmniTTY安装

“F1”菜单栏

批量SSH操作工具---OmniTTY安装

”帮助说明“信息(简单的E文)

批量SSH操作工具---OmniTTY安装

添加主机/主机列表

单个主机

F5--->”Add:172.18.8.7“

批量SSH操作工具---OmniTTY安装

主机列表

F5--->”Add:@主机列表文件路径“

批量SSH操作工具---OmniTTY安装

注:文件路径不要太长,太长也输不进去。:-(

批量SSH操作工具---OmniTTY安装

注:ssh退出的机器想再次登陆,进不去:-( 重新加。

批量SSH操作工具---OmniTTY安装

SecureCRT、putty、Xshell不同终端打开OmniTTY,显示上各有不同,示例里的截图是在shellinabox里进行的(显示相对正常)

默认运行omnitty,机器列表项显示不全,参考man omnitty,添加参数”-W”设置显示长度,我是用的alias omnitty=’omnitty –W 15’