top of page

SSH with Python

Updated: Dec 11, 2019

Prerequisites:

- 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
Fake Data in Python

If you are developing applications, testing your software, or just exploring Python's capabilities, you might have faced a situation...

 
 
 
Mobile | Secret Phone Codes

Our smartphones have become extensions of ourselves, facilitating much of our communication and storing troves of private data. If...

 
 
 
Mouse & Keyboard Bot

This article illustrates how to automate mouse and keyboard movements using pyautogui module in python. This module is not preloaded with...

 
 
 

Comments


Programming and IT solutions guide on STENGE.info blog
Cybersecurity and Networking tutorials on STENGE.info
IT infrastructure solutions and technology tutorials
STENGE.info logo - Tech Blog for IT Solutions and Tutorials
bottom of page