{"id":21389467,"url":"https://github.com/feifeibear/ssh-passwd-free","last_synced_at":"2025-10-24T16:32:20.082Z","repository":{"id":161081255,"uuid":"635229469","full_name":"feifeibear/ssh-passwd-free","owner":"feifeibear","description":"Method to set passwd-free for a set of IPs","archived":false,"fork":false,"pushed_at":"2023-05-02T08:59:31.000Z","size":1,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T21:16:02.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feifeibear.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-02T08:45:13.000Z","updated_at":"2023-09-27T18:12:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"67d07226-d79a-4125-baf1-58f6fd40474a","html_url":"https://github.com/feifeibear/ssh-passwd-free","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feifeibear%2Fssh-passwd-free","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feifeibear%2Fssh-passwd-free/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feifeibear%2Fssh-passwd-free/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feifeibear%2Fssh-passwd-free/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feifeibear","download_url":"https://codeload.github.com/feifeibear/ssh-passwd-free/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249153950,"owners_count":21221330,"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":[],"created_at":"2024-11-22T12:26:38.146Z","updated_at":"2025-10-24T16:32:20.015Z","avatar_url":"https://github.com/feifeibear.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setting up passwordless SSH for a series of machines\n\nAssuming you have a personal computer and the IP addresses of several remote machines that your personal computer can access, the following steps will allow you to set up passwordless login for these machines. It is assumed that the local username is \"you\" and the remote username is \"root\".\n\nWrite the IP addresses of the remote machines, one per line, in a file named `ip_list.txt`.\n\n## 1. Set up passwordless login between your personal computer and the remote machines\n```\nbash local_passwdless_login.sh\n```\n\n## 2. Modify SSH config\nSince the local username \"you\" and the remote username \"root\" are different, you need to add the following configuration to your `~/.ssh/config` file, with a hostname for each IP address and set the login user to \"root\".\n\n```\nHost sv001\n  HostName remote_ip1\n  User root\nHost sv002\n  HostName remote_ip2\n  User root\n...\n```\n\n## 3. Set up passwordless login between the remote machines\n\nYou need to install Ansible first.\n\nEdit the `hosts` file and add the hostnames as follows:\n```\n[sv]\nsv001\nsv002\n```\n\nRun the following command to set up passwordless login between all machines listed in `ip_list.txt`.\n```\nbash run.sh\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeifeibear%2Fssh-passwd-free","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeifeibear%2Fssh-passwd-free","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeifeibear%2Fssh-passwd-free/lists"}