The recent project on cloud platform requires Python to manage all the hosts, and I chose Paramiko. It can be used across platforms, Linux and Windows, and PSSH only supports Linux.
1: Installing GCC and Python-devel
Yum Install gcc gcc-c++ python-devel
2:paramiko relies on the Pycrypto module to download the Pycrypto installation first
wget http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.tar.gz
Unzip the last master directory to execute the following command
Install
3: Download Paramiko for installation
wget http://www.lag.net/paramiko/download/paramiko-1.7.7.1.tar.gz
Unzip the last master directory to execute the following command
Python setup.py buildpython setup.py Install
4: Modify Configuration
In Python's command-line mode, enter the following:
Import Paramiko
Tips:
" /usr/lib64/python2.6/site-packages/crypto/util/number.py " About in <module>if'module'object' have_decl_mpz_powm_sec '
Enter/usr/lib64/python2.6/site-packages/crypto/util/number.py, note the following two lines
#if _fastmath is not None and not _fastmath. Have_decl_mpz_powm_sec:# _warn ("notusing MPZ_POWM_SEC. You should rebuild using LIBGMP >= 5 to avoid timing attack vulnerability. ", powminsecurewarning)
Refer to the IBM Development documentation for details on how to use it. The only regret is that some commands need to be entered, this module does not work. Need to use Pexpect
Python telnet Paramiko module installation