A lightweight SSH remote host management tool for managing and connecting to remote hosts.
Project description
Remote Hosts
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ca0aafb181a4a6b70bcfe221cb6bc50445266f2398c9732a44934a5a7e943b7
|
|
| MD5 |
e8a9ab65f28290992adfb1d954a513bd
|
|
| BLAKE2b-256 |
14c5b2826b7ef88aa0c914bdb788787adf63bb2eb19972e98f04dfcf7fe8f64c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
773e729d0f1a72d3a30bc21d00906f3b59712d2e55668a13ffc50be21b3c60ca
|
|
| MD5 |
36306f063f5201ae93ea8cc7f4591c7a
|
|
| BLAKE2b-256 |
066731631fe7ecfb52377064f630b57439ac4758d4b395ee6b48d27bc106b8a5
|