{"id":28298218,"url":"https://github.com/poneding/sshconfig","last_synced_at":"2026-03-01T08:34:30.902Z","repository":{"id":294352163,"uuid":"986705453","full_name":"poneding/sshconfig","owner":"poneding","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-20T02:34:54.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T08:54:30.885Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/poneding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2025-05-20T02:30:12.000Z","updated_at":"2025-05-20T04:03:38.000Z","dependencies_parsed_at":"2025-05-20T02:51:30.876Z","dependency_job_id":"29cf073d-2204-4927-ad38-fefd4a55ebe7","html_url":"https://github.com/poneding/sshconfig","commit_stats":null,"previous_names":["poneding/sshconfig"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/poneding/sshconfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fsshconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fsshconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fsshconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fsshconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poneding","download_url":"https://codeload.github.com/poneding/sshconfig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fsshconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29965406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T06:55:38.174Z","status":"ssl_error","status_checked_at":"2026-03-01T06:53:04.810Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-05-23T06:13:29.437Z","updated_at":"2026-03-01T08:34:30.879Z","avatar_url":"https://github.com/poneding.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sshconfig\n\nA Rust library for parsing SSH config files into a structured format in Rust.\n\n## Installation\n\nAdd `sshconfig` crate to your cargo project:\n\n```shell\ncargo add sshconfig\n```\n\n## Usage\n\n### Basic Usage\n\n```rust\nuse sshconfig::parse_ssh_config;\nuse std::io;\n\nfn main() -\u003e io::Result\u003c()\u003e {\n    // Parse an SSH config file\n    let entries = parse_ssh_config(\"./examples/parse-ssh-config/example_config\")?;\n\n    // Process the entries\n    for entry in entries {\n        println!(\"name: {}\", entry.name);\n        println!(\"host: {}\", entry.host);\n        println!(\"user: {}\", entry.user);\n        println!(\"port: {}\", entry.port.unwrap_or(22));\n        println!(\n            \"identity file: {}\",\n            entry.identity_file.unwrap_or(\"~/.ssh/id_rsa\".to_string())\n        );\n    }\n\n    Ok(())\n}\n```\n\n## HostEntry Structure\n\nEach `HostEntry` object represents a Host entry in the SSH config file and contains:\n\n- `name`: The host alias name\n- `host`: The actual hostname or IP address\n- `port`: The port number (default: 22)\n- `user`: The username (default: \"root\")\n- `identity_file`: The identity file path (default: \"~/.ssh/id_rsa\")\n\n## License\n\nThis project is licensed under the [MIT](./LICENSE-MIT) or [Apache-2.0](./LICENSE-APACHE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fponeding%2Fsshconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fponeding%2Fsshconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fponeding%2Fsshconfig/lists"}