filmov
tv
HOW TO: Using SSH with Python

Показать описание
How to connect to SSH servers and run commands using Python. Detailed tutorial with live code example.
Today we're looking at running SSH commands from Python, reviewing the tools available, then showing you how to use them.
We will be using Fabric which can be used as a framework, but here we're using it as a library to interact with a remote computer. And here, with just a couple lines of code, we can run commands and put, and pull files, as well as then scale this to interact with multiple remote computers to run the same thing on multiple places.
Today we're looking at running SSH commands from Python, reviewing the tools available, then showing you how to use them.
We will be using Fabric which can be used as a framework, but here we're using it as a library to interact with a remote computer. And here, with just a couple lines of code, we can run commands and put, and pull files, as well as then scale this to interact with multiple remote computers to run the same thing on multiple places.