Skip to main content

A lightweight SSH remote host management tool for managing and connecting to remote hosts.

Project description

Remote Hosts

PyPI Version Python Versions SSH Protocol Remote Management License Stars Lightweight
A lightweight and efficient SSH remote host management tool that makes your remote connections simpler and more convenient
English | ไธญๆ–‡

๐Ÿ“ฆ Installation

Install from PyPI (recommended)

pip install remote-hosts

Install from source

# Clone the repository
git clone https://github.com/hollson/remote-hosts.git
cd remote-hosts

# Install
pip install -e .

๐ŸŽฏ Usage Examples

  • Display help information
$ remote_hosts -h
==============================================
        SSH Remote Host Management Tool        
==============================================

usage: remote_hosts [-h] [-v] [-e [editor]]

options:
  -l, --list      View host list
  -e [editor]     Edit configuration file
  -m, --manual    View operation guide
  -v, --version   Display version information
  -h, --help      Display help information
  • Login to remote host
$ remote_hosts
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚    ID    โ”‚      Host      โ”‚   User   โ”‚     System    โ”‚   Arch   โ”‚   Region  โ”‚   Mark    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚1         โ”‚example.com     โ”‚root      โ”‚ubuntu22.04    โ”‚x86_64    โ”‚newyork    โ”‚example    โ”‚
โ”‚2         โ”‚172.16.1.10     โ”‚root      โ”‚-              โ”‚-         โ”‚-          โ”‚example    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
Please enter host ID (q to exit): 1
Connecting to root@example.com:22...
  • Edit configuration file
$ remote_hosts -e
Please select text editor:
  1. default    System default text editor
  2. vi         Vi editor
  3. vim        Vim editor
  4. nano       Nano editor
  5. code       Visual Studio Code
Please enter option number: 

โš™๏ธ Configuration Example

The configuration file is located at ~/.ssh/term_hosts.json in JSON format. A sample configuration file will be automatically created when running for the first time.

[
	{
		"id": 1,
		"host": "example.com",
		"port": 22,
		"user": "root",
		"key": "~/.ssh/id_rsa",
		"os": "ubuntu22.04",
		"arch": "x86_64",
		"region": "newyork",
		"mark": "example"
	},
	{
		"id": 2,
		"host": "172.16.1.10",
		"user": "root",
		"mark": "example"
	}
]

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details

Project details


Download files

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

Source Distribution

remote_hosts-0.1.1.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

remote_hosts-0.1.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file remote_hosts-0.1.1.tar.gz.

File metadata

  • Download URL: remote_hosts-0.1.1.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for remote_hosts-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3ca0aafb181a4a6b70bcfe221cb6bc50445266f2398c9732a44934a5a7e943b7
MD5 e8a9ab65f28290992adfb1d954a513bd
BLAKE2b-256 14c5b2826b7ef88aa0c914bdb788787adf63bb2eb19972e98f04dfcf7fe8f64c

See more details on using hashes here.

File details

Details for the file remote_hosts-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: remote_hosts-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for remote_hosts-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 773e729d0f1a72d3a30bc21d00906f3b59712d2e55668a13ffc50be21b3c60ca
MD5 36306f063f5201ae93ea8cc7f4591c7a
BLAKE2b-256 066731631fe7ecfb52377064f630b57439ac4758d4b395ee6b48d27bc106b8a5

See more details on using hashes here.

Supported by

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