diff --git a/config.py b/config.py index 97f1c27e..2bbb0578 100644 --- a/config.py +++ b/config.py @@ -1,3 +1,4 @@ # Kippo configuration +ssh_port = 2222 fake_hostname = 'sales' diff --git a/kippo.py b/kippo.py index ee40411a..0a05a635 100755 --- a/kippo.py +++ b/kippo.py @@ -5,6 +5,7 @@ from twisted.conch.ssh import factory, keys from twisted.internet import reactor from twisted.python import log from core import Kippo +import config if __name__ == "__main__": log.startLogging(file('./log/kippo.log', 'a')) @@ -22,7 +23,7 @@ if __name__ == "__main__": sshFactory.privateKeys = { 'ssh-rsa': keys.Key.fromString(data=privKeyString)} - reactor.listenTCP(2222, sshFactory) + reactor.listenTCP(config.ssh_port, sshFactory) reactor.run() # vim: set sw=4 et: