1、下载安装包:
https://pypi.python.org/packages/source/p/paramiko/paramiko-1.14.0.tar.gz
2、解压缩:
tar -xzf paramiko-1.14.0.tar.gz
cd paramiko-1.14.0
执行命令:
python setup.py install
安装完成后进入到demos目录中运行如下命令检测安装结果:
python demo.py localhost
3、可能出现的问题:
a.ImportError: No module named ecdsa
解决办法:
下载安装包:https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.11.tar.gz
cd ecdsa-0.11
解压缩:
tar -xzf ecdsa-0.11.tar.gz
python setup.py install
b.ImportError: No module named Crypto.PublicKey
解决办法:
yum -y install pycrypto