{"id":16783008,"url":"https://github.com/sk3pp3r/wizard-ssh-copy-id","last_synced_at":"2025-03-16T21:24:22.109Z","repository":{"id":182032364,"uuid":"243465633","full_name":"sk3pp3r/wizard-ssh-copy-id","owner":"sk3pp3r","description":"Automating ssh-copy-id Answer “Yes” and copy the password by using sshpass ","archived":false,"fork":false,"pushed_at":"2022-11-07T09:16:20.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T07:47:32.077Z","etag":null,"topics":["bash","sk3pp3r","ssh","ssh-copy-id","sshpass"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/sk3pp3r.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}},"created_at":"2020-02-27T08:12:16.000Z","updated_at":"2022-11-07T09:15:37.000Z","dependencies_parsed_at":"2023-07-18T13:44:32.175Z","dependency_job_id":null,"html_url":"https://github.com/sk3pp3r/wizard-ssh-copy-id","commit_stats":null,"previous_names":["sk3pp3r/wizard-ssh-copy-id"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sk3pp3r%2Fwizard-ssh-copy-id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sk3pp3r%2Fwizard-ssh-copy-id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sk3pp3r%2Fwizard-ssh-copy-id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sk3pp3r%2Fwizard-ssh-copy-id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sk3pp3r","download_url":"https://codeload.github.com/sk3pp3r/wizard-ssh-copy-id/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933614,"owners_count":20371026,"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":["bash","sk3pp3r","ssh","ssh-copy-id","sshpass"],"created_at":"2024-10-13T07:48:44.262Z","updated_at":"2025-03-16T21:24:22.078Z","avatar_url":"https://github.com/sk3pp3r.png","language":"Shell","readme":"# wizard-ssh-copy-id\n## Automating ssh-copy-id Answer “Yes” and copy the password by using sshpass \n\nHere sample way how to execute `ssh-copy-id` with password by using `sshpass` and answering`YES` for the first time connection\n\n```\n# install sshpass \nsudo apt-get install sshpass -y # ubuntu\nsudo yum install -y sshpass # centos\n\nTEMP_PASS=\"MySecurePassword\" # The password to pass over ssh\nUSER=\"root\" # The user we going to use\nREMOTE=\"IP_or_FQDN\" # The IP of remote machine\n\necho \"yes \\n\" | sshpass -p $TEMP_PASS ssh-copy-id -o StrictHostKeyChecking=no $USER@$REMOTE\n```\n\nYou need to mark the file as executable: `chmod +x auto-ssh.sh`\n#\n### References\n*  [ssh](https://www.ssh.com/ssh/command)\n* [ ssh-copy-id](https://www.ssh.com/ssh/copy-id)\n* [sshpass](https://linux.die.net/man/1/sshpass)\n\n***\n\u003ca href=\"https://www.buymeacoffee.com/haim_cohen\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n","funding_links":["https://www.buymeacoffee.com/haim_cohen"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsk3pp3r%2Fwizard-ssh-copy-id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsk3pp3r%2Fwizard-ssh-copy-id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsk3pp3r%2Fwizard-ssh-copy-id/lists"}