Skip to content

axeprpr/axe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

axe

python expect ssh

适用于多个服务器用户名密码相同的情况下。

修改axe文件

USER = 'root'
PASSWORD = 'root'
PORT = '22'

添加alias

alias axe='/Users/axe/.axe/axe'

参考如下文档使用

help:
axe 1 ==> ssh [email protected] (use root password of astute)
axe 10.10.1.1 ==> ssh [email protected] (use root password of astute)
axe 2 3 4 -c 'ls -lrt' ==> run command on host002/3/4 and show result
axe 2 3 4 -s './test' '/home/astute' ==> scp file to host002/3/4 on purpose
axe 2 3 4 -s './test' ==> scp file to host002/3/4 to the same place

About

python expect ssh scp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published