Skip to main content

ssh module for Juniper OS

Project description

python3/python2 SSH module for session management for multivendor network devices (Juniper, Cisco IOS, Cisco ASA, Arista). Based on Netmiko

sshJUNOS provides a ready-to-go ssh module, asking for Username, Password and Enable Password. Error handling and promt information are also provided to facilitate the user in case of wrong username or password.

All netmiko commands are available with this module


#!/usr/bin/env python3
import sys
from sshJUNOS import sshHost as ssh

def showVersion(host):
    out = host.send_command("show version")


How to run it:

federico@federico:~/git/github/python/modules/python3 $ python3 srx00.sw11.lab
Username: root
Session established with Hostname: Hostname: srx00.sw11.lab IP:

Hostname: srx00.sw11.lab
Model: srx300
Junos: 15.1X49-D120.3
JUNOS Software Release [15.1X49-D120.3]

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sshJUNOS, version 2.0
Filename, size File type Python version Upload date Hashes
Filename, size sshJUNOS-2.0.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page