Login Lumper
使用
部署
部署依赖
无pip环境的,请先部署pip(参考命令:sudo easy_install pip)。
- 配置pip
sudo mkdir -p ~/.pip/
sudo echo "[global]" > ~/.pip/pip.conf
sudo echo "index-url = https://pypi.tuna.tsinghua.edu.cn/simple" >> ~/.pip/pip.conf
sudo pip install --upgrade pip
2.安装虚拟环境
sudo pip install virtualenv
virtualenv --no-site-packages env
source env/bin/activate
部署方式
部署方式,可选择pip安装或下载版本源码。
pip安装(推荐)
注:请替换'~/Documents/jump-server/'为安装路径
pip install login-jumper==2.1.5
直接下载源码
下载项目发布版本
下载release版本,解压
安装依赖
sudo pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
配置
进入安装路径下的conf目录,修改redis配置
[single]
host = 127.0.0.1
port = 6379
database = 2
password = 123456
修改堡垒机配置
[Server]
堡垒机IP
jumper_host = 192.168.1.100
堡垒机ssh端口
jumper_port = 22
[Session]
会话超时时长
alive_interval = 20000000000
[System]
.bash_profile路径
system_profile = ~/.bash_profile
使用
进入路径bin
指定主机参数,运行主程序
请通过-H参数指定需要登录的主机,支持主机名称或IP地址(查询需登录主机的主机名称或IP地址可登录堡垒机,执行jmp -a query)。如需要登录env3主机:
source env/bin/activate
jmp -H env3
注意事项
请在堡垒机设置中开启""Usmshell使用命令行方式"
Metadata
Release files for login-jumper 2.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| login_jumper-2.1.5.tar.gz | 10.3 kB | Without provenance | Details for login_jumper-2.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| login_jumper-2.1.5-py3-none-any.whl | Python 3 | none | any | Details for login_jumper-2.1.5-py3-none-any.whl |
Total release size: 28.8 kB
Release files / login_jumper-2.1.5.tar.gz
| Download URL | login_jumper-2.1.5.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b67dfc54d36cdbf9e0f6e4f4ad54253a64c82441543ed641e4a4bdb5f39a1d8d
|
|
BLAKE2b-256 checksum How to use checksums |
91a335bdc3b968722af6c428f283d704f3a40dbcd59d83d87c2d17b3172ff430
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.3
|
Release files / login_jumper-2.1.5-py3-none-any.whl
| Download URL | login_jumper-2.1.5-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6caf0aa500b9b59b8ee0a2d2f2903edb8480ba7002347424816fbbac82ba8a1
|
|
BLAKE2b-256 checksum How to use checksums |
592d1fd3e0308cc3bd776be5767d0232ff001d83645859ed8b51f8af45f5c254
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.3
|
Security for login-jumper 2.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.