Skip to main content

Ansible SSH

This script list hosts which are defined in Ansible Inventory and open SSH/SFTP connection to host which is selected.

Usage

Print usage:

ansible-terminal

Print version:

ansible-terminal -v

Work with Ansible Inventory by different options

usage: ansible-terminal [-h] -a [INVENTORY_PATH [INVENTORY_PATH ...]] -p
                        {ssh,sftp} [--debug] [-v] [-n NAME] [-u SSH_USER]
                        [-k SSH_KEY]

Open SSH/SFTP session to hosts defined in Ansible Inventory

optional arguments:
  -h, --help            show this help message and exit
  -a [INVENTORY_PATH [INVENTORY_PATH ...]]
                        Path for Ansible Inventory file or directory. Multiple
                        definitions can be done.If directory is given, all
                        Ansible Inventory files will be parsed recursively
  -p {ssh,sftp}         Protocol type for connection to Hosts. ssh / sftp
  --debug               Enable debug logs
  -v                    show program's version number and exit
  -n NAME               Name of host to search. If one host matches, will
                        connect automaically
  -u SSH_USER           SSH Username for ssh connection type. This will
                        override ansible_ssh_user for all connections
  -k SSH_KEY            SSH Key File path for ssh connection type. This will
                        override ansible_ssh_private_key_file for all
                        connections

PyPI - https://pypi.org/project/ansible-terminal/

Notes

For default, Below parameters are used for SSH/SFTP connection.

user: root
ssh-key: ~/.ssh/
target machine: host

You can overwrite these values by defining related Ansible Behavioral Inventory Properties in the inventory. Parameters:

ansible_ssh_user
ansible_host
ansible_ssh_private_key_file

Thanks

Please do not forget to star when you are using : )

Metadata

Release files for ansible-terminal 0.14.1

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

Source distribution (sdist)

Source distribution for ansible-terminal 0.14.1
File Size Uploaded Provenance
ansible-terminal-0.14.1.tar.gz 4.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ansible-terminal 0.14.1
File Interpreter ABI Platform
ansible_terminal-0.14.1-py2-none-any.whl Python 2 none any Details

Total release size: 10.7 kB

Release files / ansible-terminal-0.14.1.tar.gz

Download URL ansible-terminal-0.14.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e668ae18b0c09811a7aeaa49ed2f0b224d4378536adbe5d4cb83a72cd5fd96eb
BLAKE2b-256 checksum
How to use checksums
12df472758929eeac8d1d4cd1c2efe485e777d99d12b7cf34ef28da58fd0b5c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/2.7.16

Release files / ansible_terminal-0.14.1-py2-none-any.whl

Download URL ansible_terminal-0.14.1-py2-none-any.whl
Size 6.4 kB
Tags Python 2
SHA-256 checksum
How to use checksums
c3e2101d11ce326afad549c66dd752f5eb85d65a387e66ab67d9aa428eba16f5
BLAKE2b-256 checksum
How to use checksums
6a3c8f3a75ea074a43972cb77cb9929d7196aed6842605bdd236e1d8a88cb61f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/2.7.16

Security for ansible-terminal 0.14.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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