• Diniz Martins

SSH with Python

Updated: Dec 11, 2019


- Python Programming Language;

- Paramiko Module.

To install Paramiko, which is an SSH client for Python, open ‘cmd’ and type:

Don't forget to import your module into the script:

First step, connecting:

You can use this simple script to get the output result of the 'show version' command and save it as the same name as the command:

Other example - you can save it using the current date:

Always use the command below to finish your script:

Simple full script to execute multiple commands:

I usually use this website to download files and do some research, check it out as well:


Recent Posts

See All

Python | Subnet Ping

This script will ping and display status of all hosts in a subnet we provide. import subprocess import ipaddress from subprocess import Popen, PIPE subnet = input("Please enter the network: ") network


Sublist3r is a python tool designed to enumerate subdomains of websites using OSINT. It helps penetration testers and bug hunters collect and gather subdomains for the domain they are targeting. Enume

Ansible | Some issues

In this post I want to share with you some problems that I was facing and that I managed to fix by searching on Google, making debugs and talking with friends. #1) Problem to connect to devices using