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:
parent
69252340d9
commit
583706bbe2
1 changed files with 3 additions and 1 deletions
|
|
@ -21,7 +21,9 @@ try:
|
||||||
from twisted.conch.ssh.keys import Key
|
from twisted.conch.ssh.keys import Key
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError ("To use SSH, you need to install the crypto libraries:\n"
|
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.userauth import SSHUserAuthServer
|
||||||
from twisted.conch.ssh import common
|
from twisted.conch.ssh import common
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue