MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / _build_ssh

Function _build_ssh

config/loader.py:174–181  ·  view source on GitHub ↗
(data: Mapping[str, Any])

Source from the content-addressed store, hash-verified

172
173
174def _build_ssh(data: Mapping[str, Any]) -> SSHConfig:
175 return SSHConfig(
176 host=str(data.get("host", "")),
177 port=int(data.get("port", 22)),
178 username=str(data.get("username", "root")),
179 password=str(data.get("password", "")),
180 timeout=int(data.get("timeout", 30)),
181 )
182
183
184def _build_runtime(raw: Mapping[str, Any]) -> RuntimeConfig:

Callers 1

_build_runtimeFunction · 0.85

Calls 1

SSHConfigClass · 0.85

Tested by

no test coverage detected