用于远程服务器管理的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 Jsonify使用Jackson来定义嵌套对象   在Swing中禁用java图形调试   java Selenium Webdriver拖放在Jenkins上不起作用   java我对一个显示器的问题有一个非常不切实际的询问   java增强的“for”循环导致ArrayIndexOutOfBoundsException   ArrayAdapter适用于Java中的安卓编程,字符串数组   linux在Ubuntu上通过PulseAudio播放Java音频文件时出错   java在Spring应用程序中加载内部(类路径)和外部属性文件   java使用Maven连接到mySQL   Java应用程序的设计   websocket在电报api java中与dc的连接   java XMLStreamException,因为xml中的(&N)   java从控制台输出到JTextArea   Java导出文本文件   java实现parseInt方法   java为什么servlet容器会同步对特定资源/servlet的多个请求的访问?   循环中的Java“while”变量   用Java编程一个国际象棋游戏,gameOver布尔不起作用   java如何获得真正的JPanel大小?