From 29569cb6394021f66e1386f9dc820d79faa2b75e Mon Sep 17 00:00:00 2001 From: desaster Date: Tue, 17 Nov 2009 10:02:23 +0000 Subject: [PATCH] Add ssh_port to config.py git-svn-id: https://kippo.googlecode.com/svn/trunk@19 951d7100-d841-11de-b865-b3884708a8e2 --- config.py | 1 + kippo.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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: