MCPcopy Create free account
hub / github.com/ProjectMitosisOS/mitosis-core / __init__

Method __init__

scripts/bootstrap_proxy.py:100–109  ·  view source on GitHub ↗
(self,mac,user="",passp="")

Source from the content-addressed store, hash-verified

98
99class ConnectProxy:
100 def __init__(self,mac,user="",passp=""):
101 if user == "": ## use the server user as default
102 user = getpass.getuser()
103 self.ssh = paramiko.SSHClient()
104
105 self.ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
106 self.user = user
107 self.mac = mac
108 self.sftp = None
109 self.passp = passp
110
111 def connect(self,pwd,passp=None,timeout = 30):
112 user_config = config.lookup(self.mac)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected