load module for diffie-hellman-group-exchange-sha1

This commit is contained in:
Michel Oosterhof
2014-10-04 10:53:55 +00:00
parent c93b2ab586
commit fd4ca2bcf6

View File

@@ -109,6 +109,7 @@ class HoneyPotSSHFactory(factory.SSHFactory):
t.supportedPublicKeys = self.privateKeys.keys()
self.primes = primes.parseModuliFile('/etc/ssh/moduli')
if not self.primes:
ske = t.supportedKeyExchanges[:]
ske.remove('diffie-hellman-group-exchange-sha1')