aboutsummaryrefslogtreecommitdiffstats
path: root/ssh.py
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-15 02:01:32 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-15 02:01:32 -0400
commit4cde2aef1f9f77f559a19d35b796fb3a19184eae (patch)
treefba8e0b160e4e8f90ae07b6cb5d8186575106bb1 /ssh.py
parentf144cdf8adcb233a0a56e3bc0fe0ad6d9bdc1286 (diff)
downloadpython-termcast-server-4cde2aef1f9f77f559a19d35b796fb3a19184eae.tar.gz
python-termcast-server-4cde2aef1f9f77f559a19d35b796fb3a19184eae.zip
make the ssh private key configurable
Diffstat (limited to 'ssh.py')
-rw-r--r--ssh.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh.py b/ssh.py
index 44f24f9..d4664bf 100644
--- a/ssh.py
+++ b/ssh.py
@@ -2,9 +2,9 @@ import paramiko
import time
class Connection(object):
- def __init__(self, client, connection_id, publisher):
+ def __init__(self, client, connection_id, publisher, rsa_keyfile):
self.transport = paramiko.Transport(client)
- self.transport.add_server_key(paramiko.RSAKey(filename='test_rsa.key'))
+ self.transport.add_server_key(paramiko.RSAKey(filename=rsa_keyfile))
self.connection_id = connection_id
self.publisher = publisher
self.initialized = False