用于远程服务器管理的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正则表达式查找字符串的开头   java是否可以创建一个类来处理安卓中的所有日志代码(例如log.d(TAG,message))   如何使用Selenium和java单击WebTable任意页面上的WebElement   java解析字符串中的文件名   java刷新JTree内容   java如何覆盖RequestMappingHandler   爪哇数石头、布、剪刀赢了多少   struts中的java无效令牌   swing JTree,优化算法,Java   java Tomcat和SSL:密钥库格式无效