跳板机管理平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
牛批的一批 1b5e991a87 env var 5 years ago
client env var 5 years ago
server env var 5 years ago
.gitignore python jumpcli 5 years ago
README.md dbfile依赖环境变量JUMPDB 5 years ago

README.md

跳板机管理平台

代码目录结构如下:

├── README.md
├── client
│   ├── README.md
│   ├── go.mod
│   ├── go.sum
│   ├── jumpcli.go
│   ├── jumpcli.py
│   ├── jumpcli.svg
│   └── requirements.txt
└── server
    ├── jumpserver.py
    ├── manager_user.sh
    ├── proto.md
    └── requirements.txt

设置环境变量

'JUMPDB'是sqlite3本地数据库文件路径,这个环境变量是jumpserver和jumpcli必要的一个参数

export JUMPDB=/usr/local/jumpserver/jumpserver.db # 设置sqlite3 db文件路径
chmod 755 $JUMPDB # 设置权限755

JumpServer启动

./jumpserver.py -host 192.168.1.44 -port 8080

JumpCli命令

把jumpcli拷贝到PATH路径下

cp jumpcli.py /usr/bin/jumpcli # 拷贝到path路径
jumpcli # 执行