Connecting with SSH servers with paramiko and pysftp
In this section, we will review the SSH protocol and the paramiko
module, which provide us with the necessary methods to create SSH clients in an easy way.
The SSH protocol is one of the most used today because it uses symmetric and asymmetric cryptography to provide confidentiality, authentication, and integrity to the transmitted data. The communication security is enhanced between the client and server thanks to encryption and the use of public and private keys. SSH has become a very popular network protocol for performing secure data communication between two computers. Both parties in communication use SSH key pairs to encrypt their communications.
Each key pair has one private and one public key. The public key can be published to anyone who may be interested, and the private key is always kept private and secure from everyone except the key owner. Public and private SSH keys can be generated and digitally signed by...