Introduction to Paramiko

Paramiko is a library written in Python that supports the SSHV1 and SSHV2 protocols, allowing the creation of clients and making connections to SSH servers. It depends on the PyCrypto and cryptography libraries for all encryption operations and allows the creation of local, remote, and dynamic encrypted tunnels.

Among the main advantages of this library, we can highlight that:

  • It encapsulates the difficulties involved in performing automated scripts against SSH servers in a comfortable and easy-to-understand way for any programmer
  • It supports the SSH2 protocol through the PyCrypto library, which uses it to implement all those details of public and private key cryptography
  • It allows authentication by public key, authentication ...

Get Mastering Python for Networking and Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.