{"id":23119367,"url":"https://github.com/xinlin-z/autopass","last_synced_at":"2025-08-17T00:31:48.993Z","repository":{"id":50565969,"uuid":"519465922","full_name":"xinlin-z/autopass","owner":"xinlin-z","description":"Entering password automatically for sudo, ssh, scp, like sshpass.","archived":false,"fork":false,"pushed_at":"2025-02-07T02:18:36.000Z","size":62,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-25T23:43:17.638Z","etag":null,"topics":["password","python","scp","ssh","sshpass","sudo"],"latest_commit_sha":null,"homepage":"","language":"Python","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/xinlin-z.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-07-30T08:52:00.000Z","updated_at":"2025-04-18T03:02:46.000Z","dependencies_parsed_at":"2023-11-07T05:08:14.564Z","dependency_job_id":"e17b7649-d37b-4023-9519-edffcaab85f4","html_url":"https://github.com/xinlin-z/autopass","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/xinlin-z/autopass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinlin-z%2Fautopass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinlin-z%2Fautopass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinlin-z%2Fautopass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinlin-z%2Fautopass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xinlin-z","download_url":"https://codeload.github.com/xinlin-z/autopass/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinlin-z%2Fautopass/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270791255,"owners_count":24645781,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["password","python","scp","ssh","sshpass","sudo"],"created_at":"2024-12-17T05:33:57.772Z","updated_at":"2025-08-17T00:31:48.966Z","avatar_url":"https://github.com/xinlin-z.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Autopass\n\n* [Installation](#Installation)\n* [Usage](#Usage)\n\nEntering password automatically for sudo, ssh (remote command) and scp,\nlike sshpass. However, autopass is a pure Python version script.\n\n**No third party module is needed!**\n\n## Installation\n\n```shell\n$ pip install autopass\n```\n\n## Usage\n\n``` shell\n$ python -m autopass -p'passwd' sudo \u003ccommand\u003e\n$ AUTOPASS='passwd' python -m autopass [-t\u003cN\u003e] ssh user@domain [-p port] \u003ccommand\u003e\n```\n\n`-p\u003cpasswd\u003e`, specify the password.\n\n`-t\u003cN\u003e`, specify a timeout in seconds. SIGKILL will be issued to\nchild process after timeout. No timeout by default.\n\n**Password would be issued only once and only in the first line of output\nfor security reason**. So if the password is not correct,\nthe child process will wait for a long time. This is your chance to\nset a timeout. Other cases such as a\nterrible network, an unknown host or the fingerprint of host is not right,\netc, might also need a timeout to prevent from waiting too long.\nYou can always place a\nrelatively large timeout\nvalue to keep you from waiting like forever.\n\nPassword can also be taken from `AUTOPASS` environment variable.\nBut the password specified by `-p` has priority.\n\n``` shell\n$ export AUTOPASS='passwd'\n$ python -m autopass \u003cpasswd-needed-command\u003e\n```\n\nAutopass is a simple tool only for command execution, locally or remotely.\nIt cannot\nbe used interactively. And please do not start a background process by\nautopass, like `-f` option of ssh. It is an error. But you definitely\ncould run autopass with command as a whole in background (by `\u0026`).\n\nExit code of the executed command is returned properly, you can\nuse `echo $?` in your shell script to check if the command execution\nis successful.\n\nHave fun... ^____^\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxinlin-z%2Fautopass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxinlin-z%2Fautopass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxinlin-z%2Fautopass/lists"}