diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-09-15 02:01:32 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-09-15 02:01:32 -0400 |
commit | 4cde2aef1f9f77f559a19d35b796fb3a19184eae (patch) | |
tree | fba8e0b160e4e8f90ae07b6cb5d8186575106bb1 /ssh.py | |
parent | f144cdf8adcb233a0a56e3bc0fe0ad6d9bdc1286 (diff) | |
download | python-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.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |