2022-05-07 13:18:59 +08:00
|
|
|
|
# remote_libssh
|
|
|
|
|
远程执行shell命令
|
|
|
|
|
支持aes 128位加密密钥文件,写入程序中
|
|
|
|
|
支持指定未加密的密钥文件
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 编译
|
|
|
|
|
git clone https://git.aixiao.me/aixiao/remote_libssh
|
|
|
|
|
cd remote_libssh
|
|
|
|
|
make clean; make
|
|
|
|
|
cd ./aes
|
|
|
|
|
make clean; make
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Help
|
|
|
|
|
remote command
|
|
|
|
|
Author: aixiao@aixiao.me
|
2022-05-09 10:00:07 +08:00
|
|
|
|
Usage: [-?hlfpkib]
|
2022-05-07 13:18:59 +08:00
|
|
|
|
|
|
|
|
|
Options:
|
2022-05-09 10:00:07 +08:00
|
|
|
|
-l : host name # 主机名或Ip
|
|
|
|
|
-f : host port # 端口
|
|
|
|
|
-u : user name(default: root) # 用户名
|
|
|
|
|
-p : user passwd # 密码(默认:root)
|
2022-05-07 13:18:59 +08:00
|
|
|
|
-k : private key passwd # 私钥密码
|
2022-05-09 10:00:07 +08:00
|
|
|
|
-i : private key file # 指定私钥文件
|
2022-05-07 13:18:59 +08:00
|
|
|
|
-b : command # 执行的命令
|
2022-05-09 10:00:07 +08:00
|
|
|
|
-? -h : help information
|