确认twisted正常运作并查看版本:
# python Python 2.7.3 (default, Mar 11 2013, 22:38:13) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import twisted >>> twisted.__version__ '13.2.0'
确认ssl可以使用:
>>> import OpenSSL >>> import twisted.internet.ssl >>> twisted.internet.ssl.SSL <module 'OpenSSL.SSL' from '/usr/lib64/python2.7/site-packages/OpenSSL/SSL.so'>
确认ssh可以使用:
>>> import Crypto >>> import twisted.conch.ssh.transport >>> twisted.conch.ssh.transport.md5 <built-in function openssl_md5>