Skip to main content

SSH-CLI

PyPI GitHub Actions Workflow Status

This CLI tool allows you to create and manage your SSH config file, streamlining the process of handling SSH connections.

Installation

To install SSH-Tool, simply run the following command:

pip install ssh-cli

Usage

After installation, you can start using SSH-Tool by executing:

ssh-cli

Features

SSH-Tool comes with a variety of features to manage your SSH configurations efficiently:

  • Add a New Host: Easily add new hosts to your SSH config, with or without specifying a key.
  • Remove a Host: Remove hosts from your SSH config.
  • List All Hosts: Get a comprehensive list of all the hosts in your SSH config.
  • Connect to a Host: Initiate a connection to a specified host directly.
  • Edit SSH Config File: Open and edit your SSH config file with your preferred editor.
  • Cleanup SSH Keys: Remove unused SSH keys from your directory.

Configuration

This tool can be configured with Environment Variables:

Variable Description Default
SSH_CLI_CONFIG_FILE Path to the SSH config file (will be created if nonexitent) ~/.ssh/config
SSH_CLI_KEY_DIR Path to the directory where the keys are stored (will be created if nonexitent) ~/.ssh/keysnano`
SSH_CLI_KEY_TYPE Type of generated ssh keys ed25519
SSH_CLI_DEFAULT_USER The default user for creating new ssh hosts $USER
SSH_CLI_DEFAULT_PORT The default port for creating new ssh hosts 22
SSH_CLI_EDITOR The editor to use for editing the ssh config file $EDITOR else nano

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Metadata

Release files for ssh-cli 2.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ssh-cli 2.3.5
File Size Uploaded
ssh_cli-2.3.5.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ssh-cli 2.3.5
File Interpreter ABI Platform
ssh_cli-2.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 21.5 kB

Release files / ssh_cli-2.3.5.tar.gz

Download URL ssh_cli-2.3.5.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d25333934d8990f13b12fa3e23b235208f8979a112965374e59b528d672ae283
BLAKE2b-256 checksum
How to use checksums
c22af2efd78aa0917b236580993ee2230d2980790d6b4bf70fa92c90e0639167
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1016-azure

Release files / ssh_cli-2.3.5-py3-none-any.whl

Download URL ssh_cli-2.3.5-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a89dcd063cd23f33fd263a1a818a95950b72ef846fc597dc40cfeefa04fef13
BLAKE2b-256 checksum
How to use checksums
44f38e464b95d5d685dc26f94bae1f25ceaecbe72e3f83b145d4cc09402940a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1016-azure

Release history Release notifications | RSS feed

This release

2.3.5 This release

2 release files

2.3.4

2 release files

2.3.3

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page