Paramiko is a module written in the Python language that follows the SSH2 protocol and supports the connection of remote servers in a way that is encrypted and authenticated.
All Python-supported platforms, such as Linux, Solaris, BSD, MacOS X, Windows, and so on, are supported by the use of Python, which can run across platforms, so Paramiko Paramiko is one of the best tools when you need to use SSH to connect to another platform from one platform and perform a series of operations.
System Information currently in use:
more/etc/redhat-7.2. 1511 uname -3.10. 0-327.36. 3. el7.x86_64 #1:: x86_ x86_64 x86_64 Gnu/linux
Try to import Paramiko in Python idle environment, error no module named ' Paramiko ':
[[Email protected] ~]# Pythonpython3.5.0(Default, Feb - ., A: -: the) [GCC4.8.5 20150623(Red Hat4.8.5-4)] on Linuxtype" Help","Copyright","credits"Or"License" for Moreinformation.>>>Import Paramikotraceback (most recent call Last): File"<stdin>", line1,inch<module>Importerror:no module named'Paramiko'>>> exit ()
Install two modules using PIP:
InstallInstall Paramiko
Import Paramiko again:
[[Email protected] ~]# Pythonpython3.5.0(Default, Feb - ., A: -: the) [GCC4.8.5 20150623(Red Hat4.8.5-4)] on Linuxtype" Help","Copyright","credits"Or"License" for Moreinformation.>>>Import Paramiko>>>print (paramiko.__version__)2.2.1>>>
Install Paramiko under Linux