{"id":20716402,"url":"https://github.com/mvladislav/ansible-ssh","last_synced_at":"2025-09-27T12:31:01.099Z","repository":{"id":151662957,"uuid":"383648227","full_name":"MVladislav/ansible-ssh","owner":"MVladislav","description":"ansible-role to setup ssh-service as defined by mozilla :: https://infosec.mozilla.org/guidelines/openssh.html","archived":false,"fork":false,"pushed_at":"2024-07-26T22:41:16.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-17T03:05:40.014Z","etag":null,"topics":["ansible-role","linux","ssh","ssh-hardening","ssh-security","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Jinja","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/MVladislav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-07-07T02:11:55.000Z","updated_at":"2024-07-26T22:41:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"531fccc8-167c-4767-8127-646f9aa0667b","html_url":"https://github.com/MVladislav/ansible-ssh","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MVladislav%2Fansible-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MVladislav%2Fansible-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MVladislav%2Fansible-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MVladislav%2Fansible-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MVladislav","download_url":"https://codeload.github.com/MVladislav/ansible-ssh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234435227,"owners_count":18832092,"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":["ansible-role","linux","ssh","ssh-hardening","ssh-security","ubuntu"],"created_at":"2024-11-17T03:05:42.481Z","updated_at":"2025-09-27T12:31:01.082Z","avatar_url":"https://github.com/MVladislav.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSH\n\n\u003e [!IMPORTANT]  \n\u003e Project is **Archive** and moved into **\u003chttps://github.com/MVladislav/ansible-security\u003e**\n\n---\n\n[![Ansible Lint](https://github.com/MVladislav/ansible-ssh/actions/workflows/ansible-lint.yml/badge.svg)](https://github.com/MVladislav/ansible-ssh/actions/workflows/ansible-lint.yml)\n[![Ansible Molecule Test](https://github.com/MVladislav/ansible-ssh/actions/workflows/ci.yml/badge.svg)](https://github.com/MVladislav/ansible-ssh/actions/workflows/ci.yml)\n\n- [SSH](#ssh)\n  - [Role Variables](#role-variables)\n  - [Dependencies](#dependencies)\n  - [Example Playbook](#example-playbook)\n  - [License](#license)\n  - [OTHER](#other)\n    - [deprecation remove](#deprecation-remove)\n\n---\n\nYou can checkout [MVladislav - ansible-env-setup - playbooks](https://github.com/MVladislav/ansible-env-setup/tree/main/playbooks) for how i use it in general.\n\nTested with:\n\n- Ubuntu 23.04\n\n## Role Variables\n\n```yml\nclients:\n  - name: \"{{ ansible_user }}\"\n\nssh_only_client_setup: false\n```\n\n## Dependencies\n\nDeveloped and testes with Ansible 2.14.4\n\n## Example Playbook\n\n```yml\n- hosts: servers\n  roles:\n    - role: ansible-ssh\n      clients:\n        - name: \"{{ ansible_user }}\"\n      ssh_only_client_setup: false\n```\n\n## License\n\nMIT\n\n## OTHER\n\n### deprecation remove\n\n```sh\nsed -i '/KeyRegenerationInterval/d' /etc/ssh/sshd_config\nsed -i '/ServerKeyBits/d' /etc/ssh/sshd_config\nsed -i '/RSAAuthentication/d' /etc/ssh/sshd_config\nsed -i '/RhostsRSAAuthentication/d' /etc/ssh/sshd_config\nsed -i '/UsePrivilegeSeparation/d' /etc/ssh/sshd_config\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvladislav%2Fansible-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvladislav%2Fansible-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvladislav%2Fansible-ssh/lists"}