Skip to main content

A helper for ssh operate in terminal

Project description

Simple Tabby

A hepler tool to manage many remote ssh server.

when you open a native terminal on unix system , stabby can list all remote ssh server that you have configed as a pretty table. Then you can choose one to login.

You will get more infomation about every remote ssh server depend on what's your describe for the server

Why

I just need a gadget for my work . In my work, i need to manage many remote server machines that deployed some application, such as java application,mysql and so on. when i decided to connect some machines, I spend a lot of time checking which applications are deployed on each server it's making me miserable. Tabby has wonderful Profiles & connections feature, but there no space to remark more information for every machine or connection. I still need another document to manage information that can not hold with Tabby.

Usage

usage: stabby [-h] [-ls] [-c CONNECT] [-t TUNNET]

Hello

optional arguments:
  -h, --help            show this help message and exit
  -ls, --list           list all configed servers.
  -c CONNECT, --connect CONNECT
                        connect to remote server by No.
  -t TUNNET, --tunnet TUNNET
                        open tunnet with ssh localport:remoteport
  1. clone the code

  2. install require python package from requirements.txt

  3. use pyinstaller build

    $ pyinstall -F terminal.py
    
  4. the file under dist named terminal is the finally executable file

  5. run terminal in your command line

    $ terminal 
    

How does it work

It's so easy. Default , stabby(simple_tabby) loads config file under $USER_HOME/.simple_tabby/terminals_config.json, file content like below:

[
  {
    "name": "name",
    "host": "remote server ip or host",
    "port": 22,
    "user": "remote user",
    "password": "remote password",
    "privateKey": "ssh key path",
    "describe": "description for the configuration",
    "application": [
      "first app that deploy in server",
      "second app that deploy in server"
    ],
    "tags": [
      "prod",
      "application-server"
    ]
  }
]

and the file need to create by yourself. you can use different json file to group your remote server information. if load file success, stabby will print as table like below:

no name ip apps tags description
1 mysql-server 127.0.0.1 mysql mysql mysql machine
2 spring-boot 127.0.0.2 jar application application machine
3 jenkins 127.0.0.3 jenkins devops ops machine

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

stabby-1.0.0-py3.8.egg (3.7 kB view details)

Uploaded Source

File details

Details for the file stabby-1.0.0-py3.8.egg.

File metadata

  • Download URL: stabby-1.0.0-py3.8.egg
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.2

File hashes

Hashes for stabby-1.0.0-py3.8.egg
Algorithm Hash digest
SHA256 87671aa9cbc88aab09b7c26c8a66e3e7106b424763d49f839f5a4c14246814b4
MD5 c782ddba53868b3ec8e2b4698a9944a5
BLAKE2b-256 bf2453d711dcfd79d6246744747671baf078915cd40ec2901883b06df1f9d5c8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page