MCPcopy Create free account
hub / github.com/SpaceNetLab/StarryNet / sn_init_remote_machine

Function sn_init_remote_machine

starrynet/sn_utils.py:159–173  ·  view source on GitHub ↗
(host, username, password)

Source from the content-addressed store, hash-verified

157
158
159def sn_init_remote_machine(host, username, password):
160 # transport = paramiko.Transport((host, 22))
161 # transport.connect(username=username, password=password)
162 remote_machine_ssh = paramiko.SSHClient()
163 # remote_machine_ssh._transport = transport
164 remote_machine_ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
165
166 remote_machine_ssh.connect(hostname=host,
167 port=22,
168 username=username,
169 password=password)
170 transport = paramiko.Transport((host, 22))
171 transport.connect(username=username, password=password)
172 return remote_machine_ssh, transport
173 # transport.close()
174
175
176def sn_init_remote_ftp(transport):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected