paramiko是个很适合做远程控制的模块,python要求3.0以上版本。
使用的过程中遇到一些问题
root/miniconda3/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/ciphers.py:114: UserWarning: implicit cast from 'char *' to a different pointer type: will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct)
operation
/root/miniconda3/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/ciphers.py:140: UserWarning: implicit cast from 'char *' to a different pointer type: will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct)
self._backend._ffi.from_buffer(data), len(data)
解决方法
cryptography版本不够新,升级一下版本就可以了
pip install --upgrade cryptography