Add ssh_port to config.py

git-svn-id: https://kippo.googlecode.com/svn/trunk@19 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster 2009-11-17 10:02:23 +00:00
parent b6786b2296
commit 29569cb639
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,4 @@
# Kippo configuration
ssh_port = 2222
fake_hostname = 'sales'

View File

@ -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: