{"id":17274831,"url":"https://github.com/jeremyskinner/ssh-config-parser","last_synced_at":"2025-07-29T14:11:16.401Z","repository":{"id":66930576,"uuid":"137613608","full_name":"JeremySkinner/Ssh-Config-Parser","owner":"JeremySkinner","description":"C#/.NET parser for OpenSSH config files","archived":false,"fork":false,"pushed_at":"2018-06-18T16:51:28.000Z","size":34,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T09:52:59.739Z","etag":null,"topics":["csharp","netstandard","openssh","openssh-config","ssh","ssh-config"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JeremySkinner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-06-16T22:14:46.000Z","updated_at":"2023-07-17T13:11:27.000Z","dependencies_parsed_at":"2023-03-09T06:45:23.022Z","dependency_job_id":null,"html_url":"https://github.com/JeremySkinner/Ssh-Config-Parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JeremySkinner/Ssh-Config-Parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeremySkinner%2FSsh-Config-Parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeremySkinner%2FSsh-Config-Parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeremySkinner%2FSsh-Config-Parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeremySkinner%2FSsh-Config-Parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JeremySkinner","download_url":"https://codeload.github.com/JeremySkinner/Ssh-Config-Parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeremySkinner%2FSsh-Config-Parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267701293,"owners_count":24130447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","netstandard","openssh","openssh-config","ssh","ssh-config"],"created_at":"2024-10-15T08:54:50.183Z","updated_at":"2025-07-29T14:11:16.393Z","avatar_url":"https://github.com/JeremySkinner.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSH Config File Parser for .NET\r\n\r\nThis is a parser for the OpenSSH config file format written in .NET. It is a port of https://github.com/dotnil/ssh-config.\r\n\r\n# Usage\r\n\r\n```\r\n# Assuming the following config file\r\nHost server1\r\n  HostName server1.jeremyskinner.co.uk\r\n  IdentityFile ~/.ssh/id_rsa\r\n```\r\n\r\n```csharp\r\n\r\n\r\nvar config = SshConfig.ParseConfig(\"path/to/ssh/config\");\r\n// Find a host\r\nvar host = config.Find(\"server1\");\r\nConsole.WriteLine(host.Host); // server1\r\nConsole.WriteLine(host.HostName); // server1.jeremyskinner.co.uk\r\nConsole.WriteLine(host.IdentityFile); // ~/.ssh/id_rsa\r\n\r\n// Also accessible via indexer along with any other properties\r\nConsole.WriteLine(host[\"Host\"]);\r\nConsole.WriteLine(host[\"HostName\"]);\r\n\r\n// Add a new host\r\nconfig.Add(new SshHost \r\n{\r\n  Host = \"server2.jeremyskinner.co.uk\",\r\n  IdentityFile = \"~/.ssh/id_rsa\"\r\n});\r\n\r\n// Convert the config back to a string which can be written to the .ssh/config file\r\nstring rawOutput = config.ToString();\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremyskinner%2Fssh-config-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeremyskinner%2Fssh-config-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremyskinner%2Fssh-config-parser/lists"}