用于远程服务器管理的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}$配置值
Value | Meaning | Default |
---|---|---|
^{ | The command to run | ^{ |
^{ | The user to log in as | The current user |
^{ | The IP to connect to | ^{ |
^{ | The port to connect to | ^{ |
^{ | The ssh key to use | No key |
^{ | A server to jump ssh through | Nothing |
^{ | Just runs ^{ | ^{ |
- 项目
标签: