Update the SSH pycrypto/asn1 import recommendation to instead reference the cryptography library as mentioned in Twisted issue https://twistedmatrix.com/trac/ticket/7413.

This commit is contained in:
Griatch 2016-08-10 22:33:52 +02:00
parent 69252340d9
commit 583706bbe2

View file

@ -21,7 +21,9 @@ try:
from twisted.conch.ssh.keys import Key
except ImportError:
raise ImportError ("To use SSH, you need to install the crypto libraries:\n"
" pip install pycrypto pyasn1\n")
" pip install cryptography\n"
"(on older Twisted versions you may instead have to try "
"pip install pycrypto pyasn1)\n")
from twisted.conch.ssh.userauth import SSHUserAuthServer
from twisted.conch.ssh import common