SSH

SSH is a network protocol and is used to manage a device or servers through remote access. SSH uses public key encryption for security purposes. The important difference between Telnet and SSH is that SSH uses encryption, which means that all data transmitted over a network is protected from unauthorized real-time interception.

User who accesses a remote server or device must install an SSH client. Install SSH by running the following command in your Terminal:

$ sudo apt install ssh

Also, on a remote server where the user wants to communicate, an SSH server must be installed and running. SSH uses the TCP protocol and works on port number 22 by default.

You can run the ssh command through the Terminal as follows:

$ ssh host_name@host_ip_address

Now, you will learn to do SSH by using different modules in Python, such as subprocess, fabric, Netmiko, and Paramiko. Now, we will see those modules one by one.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset