{"id":16361676,"url":"https://github.com/kabirbaidhya/fakeserver","last_synced_at":"2025-03-23T02:31:23.762Z","repository":{"id":152173451,"uuid":"153510951","full_name":"kabirbaidhya/fakeserver","owner":"kabirbaidhya","description":"https://hub.docker.com/r/kabirbaidhya/fakeserver/","archived":false,"fork":false,"pushed_at":"2018-10-31T15:56:45.000Z","size":15,"stargazers_count":19,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T16:40:40.413Z","etag":null,"topics":["docker","fake","fakeserver","integration-testing","mock","server","ssh","sshd","test"],"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/kabirbaidhya.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":"2018-10-17T19:17:33.000Z","updated_at":"2024-12-21T02:51:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5458c59-cb2b-4a80-b03c-84516110f14e","html_url":"https://github.com/kabirbaidhya/fakeserver","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/kabirbaidhya%2Ffakeserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kabirbaidhya%2Ffakeserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kabirbaidhya%2Ffakeserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kabirbaidhya%2Ffakeserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kabirbaidhya","download_url":"https://codeload.github.com/kabirbaidhya/fakeserver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245047979,"owners_count":20552430,"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":["docker","fake","fakeserver","integration-testing","mock","server","ssh","sshd","test"],"created_at":"2024-10-11T02:14:30.538Z","updated_at":"2025-03-23T02:31:23.459Z","avatar_url":"https://github.com/kabirbaidhya.png","language":"Shell","readme":"# fakeserver\n\nA docker container to emulate a remote server for testing. The primary purpose is to emulate and test running automated scripts and utilities over ssh in remote servers.\n\nhttps://hub.docker.com/r/kabirbaidhya/fakeserver/\n\nUses https://github.com/panubo/docker-sshd as a base image to run OpenSSH `sshd` service.\n\n## Quick Spin Up\nSet it up\n```bash\n➜ git clone https://github.com/kabirbaidhya/fakeserver.git\n➜ cd fakeserver\n➜ cat ~/.ssh/id_rsa.pub \u003e .authorized_keys\n```\nRun the server\n```bash\n➜ ./up.sh\n```\n\nTest it out\n```bash\n➜ ssh app@localhost -p 2222\n```\n## Custom Usage\n\nPull the image.\n\n```bash\n➜ docker pull kabirbaidhya/fakeserver\n```\n\nSet authorized keys for the server.\n\n```bash\n➜ cat ~/.ssh/id_rsa.pub \u003e /path/to/authorized_keys\n```\n\nRun the fakeserver.\n\n```bash\n➜ docker run -d -p 2222:22 \\\n             -v \"/path/to/authorized_keys:/etc/authorized_keys/tester\" \\\n             -e SSH_USERS=\"tester:1001:1001\" \\\n             --name=fakeserver kabirbaidhya/fakeserver\n```\n\nYou can now use the fakeserver from any ssh client. For instance:\n\n```bash\n# SSH to the server\n➜ ssh tester@localhost -p 2222\n\n# Run a command in the server\n➜ ssh tester@localhost -p 2222 \"echo 'Hello World'\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkabirbaidhya%2Ffakeserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkabirbaidhya%2Ffakeserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkabirbaidhya%2Ffakeserver/lists"}