Example #1
0
 def setup_ssh(self):
     ssh_port = self.get_config("node", "ssh.port", "")
     if ssh_port:
         ssh_keyfile = self.get_config("node", "ssh.authorized_keys_file").decode('utf-8')
         from allmydata import manhole
         m = manhole.AuthorizedKeysManhole(ssh_port, ssh_keyfile.encode(get_filesystem_encoding()))
         m.setServiceParent(self)
         self.log("AuthorizedKeysManhole listening on %s" % ssh_port)
Example #2
0
 def setup_ssh(self):
     ssh_port = self.get_config("node", "ssh.port", "")
     if ssh_port:
         ssh_keyfile_config = self.get_config("node", "ssh.authorized_keys_file").decode('utf-8')
         ssh_keyfile = abspath_expanduser_unicode(ssh_keyfile_config, base=self.basedir)
         from allmydata import manhole
         m = manhole.AuthorizedKeysManhole(ssh_port, ssh_keyfile)
         m.setServiceParent(self)
         self.log("AuthorizedKeysManhole listening on %s" % (ssh_port,))