{"id":22364899,"url":"https://github.com/thisdevdane/sshconfig-1password","last_synced_at":"2025-03-26T15:26:04.299Z","repository":{"id":91396129,"uuid":"575552501","full_name":"ThisDevDane/sshconfig-1password","owner":"ThisDevDane","description":"1Pasword utility for generating a sshconfig","archived":false,"fork":false,"pushed_at":"2022-12-11T15:14:46.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T16:57:20.807Z","etag":null,"topics":["1pass","1password","1password-cli","generate","sshconfig","utility"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ThisDevDane.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}},"created_at":"2022-12-07T19:13:39.000Z","updated_at":"2022-12-11T14:32:51.000Z","dependencies_parsed_at":"2023-03-13T17:44:46.833Z","dependency_job_id":null,"html_url":"https://github.com/ThisDevDane/sshconfig-1password","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisDevDane%2Fsshconfig-1password","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisDevDane%2Fsshconfig-1password/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisDevDane%2Fsshconfig-1password/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisDevDane%2Fsshconfig-1password/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThisDevDane","download_url":"https://codeload.github.com/ThisDevDane/sshconfig-1password/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245679776,"owners_count":20654900,"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","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":["1pass","1password","1password-cli","generate","sshconfig","utility"],"created_at":"2024-12-04T17:42:55.566Z","updated_at":"2025-03-26T15:26:04.272Z","avatar_url":"https://github.com/ThisDevDane.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 1Pasword utility for sshconfig\n\nThis utility is for generating a sshconfig you can `Include` in your main config from 'Server' items in your 1Password vault.\n\n## Requirements\n\n- [1Password CLI](https://1password.com/downloads/command-line/) (`op`). _Developed and tested with 2.9.1_.\n- Have 1Password CLI available in your PATH under the name `op`\n\n## Usage\n\nTo use the application you first have to prepare some 'Server' items in your vault and then call the cli application.\n\n### Vault items\n\nTo have Server items in your 1Password vault be put into the ssh config you have to add a tag to them, \nthe utility will by default look for the tag `ssh-gen` but you can change that tag via the `--tag` argument to the application.\n\nFurthermore, you can add a section called `SSH Config` (exact casing) to the Server item and it will take every field in there, perform basic validation on it\nand add it to the generated config.\n\n![1Pass example image](1pass-example.png)\n```\n# Generated from sshconfig-1password on 2022-12-11T15:04:50+01:00 using sshconfig-1password version 0.0.0+N/A\nHost brewmaster\n        Hostname 192.168.1.147\n        User hoej\n        Port 2222\n        ForwardAgent yes\n```\n\n### CLI \n\nWhen running the application you have to have the 1password cli `op` already authenticated, usually done with `eval $(op signin)` or if you have the option to have it authenticated via\nthe desktop application then just be sure it's logged in.\n\nYou can provide the following arguments on the commandline when generating your config:\n```bash\nUsage of sshconfig-1password:\n  -out string\n        Path of output file or stdout/stderr (default \"stdout\")\n  -tag string\n        Tag to lookup specific servers to add to the config (default \"ssh-gen\")\n  -vault string\n        Vault to fetch servers from\n  -version\n        Print current version\n```\n\nOnce that is done, you simply take the generated file and use an `Include` directive in your main sshconfig file to \ninclude this generated file and you can start ssh'ing using the 'Server' items in your vault. Example:\n```sh\nsshconfig-1password -vault Personal -tag sshconfig -o 1pass.sshconfig\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisdevdane%2Fsshconfig-1password","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisdevdane%2Fsshconfig-1password","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisdevdane%2Fsshconfig-1password/lists"}