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.0.tar.gz (9.8 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.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: remote_hosts-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 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.0.tar.gz
Algorithm Hash digest
SHA256 dd548a8a97de359555843c9630371a84d2f797f337058bc421a229650cadbbc1
MD5 92d55bb0af195b7bb1c37d262296ccec
BLAKE2b-256 fca93d919fb7293c56681a7d14e674b2b5a12a9c00e12f960e016ce1a02ead65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: remote_hosts-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48a32d421caba6a469d3ed464478f2c6f0e6048f96480d9dd37dc7446b286dc6
MD5 009840e0786a97b5ff0e944fab8e0f49
BLAKE2b-256 bd78b764fe218f2e7b8d8cade51d34dea5095d538779e55b484b55e7528efc1f

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