A generic and platform agnostic SSH module to access and send commands to remote devices that support OpenSSH
Project description
Project description
SSH Client Package
#Simple, Fast and Secure method to:
Create automated tools to back-up Routers, Switches and Access-Points
Create automated tools for dynamic network configuration generation
Create automated tools for configurations roll-out
Create automated tools for network devices audit
Create automated tools for network devices inventory generation
Create automated tools for network devices troubleshooting
##How to use the Package.
###How to send a single command to a remote host ‘in global config mode’
#####Download the package in your computer
pip install sshFRIEND
#####Inside your script, do the following:
from sshFRIEND.ssh_connector import *
hostname = “your hostname here”
username = “your username here”
password = “your password here”
cmd = “show running-config”
channel = ssh_connector(hostname, username, password)
output = send_cmd(cmd, channel)
print(output)
###How to send a single command to a remote host ‘in config mode’
#####Inside your script, do the following:
from sshFRIEND.ssh_connector import *
hostname = “your hostname here”
username = “your username here”
password = “your password here”
cmd = “show running-config”
channel = ssh_connector(hostname, username, password)
output = send_config_cmd(cmd, channel)
print(output)
###How to send multiple commands to a remote host ‘in global config mode’
#####Inside your script, do the following:
from sshFRIEND.ssh_connector import *
hostname = “your hostname here”
username = “your username here”
password = “your password here”
list_of_commands = [“show running-config”, “show running-config”]
channel = ssh_connector(hostname, username, password)
output = send_cmds(list_of_commands, channel)
print(output)
###How to send multiple commands to a remote host ‘in config mode’
##### Inside your script, do the following:
from sshFRIEND.ssh_connector import *
hostname = “your hostname here”
username = “your username here”
password = “your password here”
list_of_commands = [“show running-config”, “show running-config”]
channel = ssh_connector(hostname, username, password)
output = send_config_cmds(list_of_commands, channel)
print(output)
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file sshFRIEND-0.0.11.tar.gz
.
File metadata
- Download URL: sshFRIEND-0.0.11.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecd4469b6d55d9420d32c8604d959e3fa0d4d3454b676efb50fead2d03d7bcbf |
|
MD5 | 04b4d03ace83dedaafa96dab3a464426 |
|
BLAKE2b-256 | 383f3b2e1ba5b35f96b8efec4417153a0c5259f338dc0f66e0372ad6a1e439e0 |
File details
Details for the file sshFRIEND-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: sshFRIEND-0.0.11-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2b971bc887a057b32dd0e5d67cbf75842886725128efd720de0bb7d31acba60 |
|
MD5 | 00fba9df780ec2aa370ca97cdb390812 |
|
BLAKE2b-256 | f237a86009271c4f6d771e619e2336e46923aa4b1781dcb077ea77198fbf57cc |