semvec/pypi-packages huggingface dataset:
login-jumper 2.1.6a1
Logging ecs automatic via jumper server
Requires Python: >=2.7

# Login Lumper

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](http://github.com/hhyo/archery/blob/master/LICENSE)
[![version](https://img.shields.io/badge/python-3.7.5-blue.svg)](https://www.python.org/downloads/release/python-375/)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5c735378085b404caf09a441238ad034)](https://www.codacy.com/manual/sunnywalden/login-jumper?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=sunnywalden/login-jumper&amp;utm_campaign=Badge_Grade)
[![Build Status](https://travis-ci.org/sunnywalden/login-jumper.svg?branch=master)](https://travis-ci.org/sunnywalden/login-jumper)



## 部署

### 部署依赖

无pip环境的，请先部署pip（参考命令：sudo easy_install pip）。

1. 配置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.6Alpha1

---

#### 直接下载源码

##### 下载项目发布版本

下载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

---

## 使用

指定主机参数，运行主程序。先切换环境。

---

    source env/bin/activate

---

#### 帮助信息

jmp --help命令返回帮助信息。


---

jmp --help


Usage: python server_gate.py [-H [host]] [-a [action]]

Login server via jumper

Options:

  --version             show program's version number and exit

  -h, --help            show this help message and exit

  -H HOST, --host=HOST  specify the host, default: env4

  -a ACTION, --action=ACTION specify the type, login or query, default: login


---

#### 查询主机

查询需登录主机的主机名称或IP地址可登录堡垒机，执行jmp -a query命令，会返回所有主机列表。


#### 登录主机

jmp -H [HOST], 请通过-H参数指定需要登录的主机，支持主机名称或IP地址。如需要登录env3主机：

---

    jmp -H env3

---


## 注意事项

请在堡垒机设置中开启""Usmshell使用命令行方式"
gzipi 0.1.3
Tools for indexing gzip files to support random-like access.

=====
gzipi
=====

Tools for indexing gzip files to support random-like access.

Installing
~~~~~~~~~~

To install library, run the following coomand::

    $ python setup.py install

Testing
~~~~~~~
::

    $ make test
    $ make lint


Indexing a file
===============

Indexing a file from stdin::

    $ cat profiles.json.gz | gzipi index --format json --field id > index.json.gz

Indexing a local file::

    $ cat profiles.json.bz -i profiles.json.gz -o index.json.gz --format csv --column 0 --delimiter ','


Retrieving data
================

Retrieving all data for specific domains::

    $ zcat domains.json.gz | gzipi retrieve -f profiles.json.gz -i index.json.gz --format json > data.json --field domain


Using local and S3 paths::

    $ gzipi retrieve -k domains.json.gz -f s3://domain-data/reports/Q1.json.gz -i index.json.gz --format json -o data.json --field domain

Repacking existing archives
===========================
::

    $ gzipi repack -f profiles.json.gz -i new_index.json.gz -o new_profiles.json.gz --format json --field domain

Help
====

To get more information, run the following command::

    $ gzipi --help