用于远程服务器管理的python实用程序

connectionmaster的Python项目详细描述


连接主机

一个命令行远程服务器连接和管理工具

安装

$ pip install connectionmaster
MacOS
$ echo alias cm='python3 -m connectionmaster' > ~/.bash_profile
Linux
$ echo alias cm='python3 -m connectionmaster' > ~/.bashrc

配置文件是~/.cmrc.yaml

使用

每个命令都有一个字母的长表格

$ cm connect myServer
$ cm c myServer
$ cm execute mySecondServer "echo hi > test.txt"
$ cm x mySecondServer "echo hi > test.txt"
$ cm scp myThirdServer localfile remotefile
$ cm scp myThirdServer localfile remotefile
$ cm ping myFourthServer
$ cm p myFourthServer
$ cm edit
$ cm e

配置文件

^{pr2}$

配置值

ValueMeaningDefault
^{}The command to run^{}
^{}The user to log in asThe current user
^{}The IP to connect to^{}
^{}The port to connect to^{}
^{}The ssh key to useNo key
^{}A server to jump ssh throughNothing
^{}Just runs ^{} without adding ip, port, etc^{}

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java广播接收器未检测到按键事件   java不为特定列更改创建修订   java采用了更实用的方法   java桌面窗格HTML呈现   java处理internet连接丢失   java在调整JFrame的大小时,如何防止JTable的列调整大小?   如何用Java中的“Scanner.hasNext”完成程序   具有模块名称的java停止IntelliJ项目工具窗口?   执行已编译的Rails-Warbler JAR文件时发生java加载错误   java Spring数据redis存储库不支持集合查询?   每个客户端的java队列请求   获取Java中的JSON嵌套数组元素   java GWT,Vaadin ConcurrentModificationException   firebase存储中的java在保存照片之前,我需要发送两次照片   JavaSpringEleaf如何在容器外使用变量