Python telnet Paramiko module installation

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.