8000 GitHub - axeprpr/axe: python expect ssh scp
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

axeprpr/axe

< 8000 script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_code-view-shared_hooks_use-canonical-object_ts-ui_packages_code-view-shared_hooks-cd3541-677c2c477dc2.js">

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 root@192.222.1.1 (use root password of astute)
axe 10.10.1.1 ==> ssh root@10.10.1.1 (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
0