{"id":15854133,"url":"https://github.com/jeffwidman/ansible-sshd","last_synced_at":"2026-01-27T06:32:48.948Z","repository":{"id":86810132,"uuid":"43212431","full_name":"jeffwidman/ansible-sshd","owner":"jeffwidman","description":"Ansible Role for installing/configuring SSHd on CentOS/RHEL","archived":false,"fork":false,"pushed_at":"2016-03-03T10:31:54.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T07:41:55.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/jeffwidman.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":"2015-09-26T16:10:58.000Z","updated_at":"2016-03-03T10:31:54.000Z","dependencies_parsed_at":"2023-07-12T10:00:23.710Z","dependency_job_id":null,"html_url":"https://github.com/jeffwidman/ansible-sshd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeffwidman/ansible-sshd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwidman%2Fansible-sshd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwidman%2Fansible-sshd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwidman%2Fansible-sshd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwidman%2Fansible-sshd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffwidman","download_url":"https://codeload.github.com/jeffwidman/ansible-sshd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwidman%2Fansible-sshd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28806359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T06:25:51.065Z","status":"ssl_error","status_checked_at":"2026-01-27T06:25:50.640Z","response_time":168,"last_error":"SSL_read: 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":"2024-10-05T19:40:56.004Z","updated_at":"2026-01-27T06:32:48.921Z","avatar_url":"https://github.com/jeffwidman.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"sshd Ansible role\n=========\n\nConfigures sshd and adds authorized keys for users who need SSH access\n\nRole Variables\n--------------\n\nThe main variable you need to adjust is `ssh_users`. This is the list of users\nwho need their keys added to the box. If you have another role that manages users,\nthen just set `ssh_users` to inherit from `users`.\n\nFor safety, this role only alters `sshd_config` if the authorized keys were\nsuccessfully added to the box.\n\nThis role also defaults the `wheel` group to having passwordless sudo so that if\nyou accidentally disable root login via ssh you won't be locked out of root.\n\nOther Notes\n------------\n\nOne gotcha: Ansible will convert unquoted `yes`/`no` values to `True`/`False`,\nbut `sshd_config` only accepts `yes`/`no` values. So just quote the Ansible\nvariables like this: `permit_root_login: \"yes\"`\n\nRequirements\n------------\n\nTested on CentOS 7.\nUntested but will likely work on CentOS 6 and equivalent RHEL versions.\n\nExample Playbook\n----------------\n\n    - hosts: servers\n      roles:\n        - { role: sshd,\n              permit_root_login: \"no\",\n              password_authentication: \"no\",\n              challenge_response_authentication: \"no\",\n              tags: ['sshd'] }\n\nLicense\n-------\n\nMIT\n\nAuthor Information\n------------------\n\nJeff Widman jeff@jeffwidman.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffwidman%2Fansible-sshd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffwidman%2Fansible-sshd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffwidman%2Fansible-sshd/lists"}