MCPcopy Index your code
hub / github.com/jtesta/ssh-audit / get_ssh_version

Method get_ssh_version

src/ssh_audit/algorithm.py:34–43  ·  view source on GitHub ↗
(version_desc: str)

Source from the content-addressed store, hash-verified

32
33 @staticmethod
34 def get_ssh_version(version_desc: str) -> Tuple[str, str, bool]:
35 is_client = version_desc.endswith('C')
36 if is_client:
37 version_desc = version_desc[:-1]
38 if version_desc.startswith('d'):
39 return Product.DropbearSSH, version_desc[1:], is_client
40 elif version_desc.startswith('l1'):
41 return Product.LibSSH, version_desc[2:], is_client
42 else:
43 return Product.OpenSSH, version_desc, is_client
44
45 @classmethod
46 def get_since_text(cls, versions: List[Optional[str]]) -> Optional[str]:

Callers 4

verMethod · 0.80
get_since_textMethod · 0.80
get_recommendationsMethod · 0.80
_updateMethod · 0.80

Calls

no outgoing calls

Tested by 1

verMethod · 0.64