March 2019
Beginner
490 pages
12h 40m
English
SSH is a client/server protocol. Both of the parties use the SSH key-pairs to encrypt the communication. Each key-pair has one private and one public key. The public key can be published to anyone who may be interested in it. The private key is kept private from everyone except the owner of the key.
We can use the paramiko module to create an SSH client and then connect it to the SSH server. This module will supply the SSHClient() class.
You can use the SSHClient class to create an SSH client with the paramiko module:
ssh_client = paramiko.SSHClient()
By default, the instance of this client class will reject the unknown host keys. So, you can set up a policy to accept the unknown host keys. The ...
Read now
Unlock full access