{"id":16341828,"url":"https://github.com/adimit/docker-scp","last_synced_at":"2026-02-02T02:04:38.318Z","repository":{"id":66452559,"uuid":"119075667","full_name":"adimit/docker-scp","owner":"adimit","description":"Tiny image to allow copying things via scp","archived":false,"fork":false,"pushed_at":"2018-01-26T17:10:49.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-21T00:42:05.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/adimit.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":"2018-01-26T16:31:12.000Z","updated_at":"2018-01-26T16:31:12.000Z","dependencies_parsed_at":"2023-02-23T07:16:08.898Z","dependency_job_id":null,"html_url":"https://github.com/adimit/docker-scp","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"2143e23e614e7c6013a0feb768c155da8fe4c19d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adimit/docker-scp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adimit%2Fdocker-scp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adimit%2Fdocker-scp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adimit%2Fdocker-scp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adimit%2Fdocker-scp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adimit","download_url":"https://codeload.github.com/adimit/docker-scp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adimit%2Fdocker-scp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261987508,"owners_count":23240856,"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-10-11T00:00:29.210Z","updated_at":"2026-02-02T02:04:33.286Z","avatar_url":"https://github.com/adimit.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-scp\nTiny image to allow copying things via scp. It's intended to be used for CI systems.\n\n## Instructions\n\nInstructions will vary according to the CI you're using.\n\n### Generate your key\n\n**NOTE**: All of this happens on your host machine!\n\nGiven `$KEYNAME`, use the following to generate a key:\n\n```\nssh-keygen -t ed25519 -f $KEYNAME -C \"This is some random comment\"\n```\n\nI'm using ed25519 for more security. Alternatively, use 3072 bit RSA if your\ntarget server is old. If you provide a password, you need to supply it to\nssh-agent in your CI, too.\n\nCopy it to the target server:\n\n```\nssh-copy-id -i $KEYNAME user@yourhost\n```\n\nYou may need to provide the `-f` option to `ssh-copy-id`. Try out if it worked:\n\n```\nssh -i $KEYNAME user@yourhost\n```\n\nTake note of your `~/.ssh/known_hosts` for the host you're logging in to. You\nwill need to provide it as a host key for your CI, otherwise ssh gives an\ninteractive prompt and your CI script *will fail.*\nDon't just switch off known hosts checks.\n\nChuck the known-host-key line, and the private key into CI variables.\n\n### Gitlab-CI\n\nAfter putting your credentials into CI variables (I recommend making them protected),\nhave your `script` look somewhat like this:\n\n```\n- eval $(ssh-agent -s)\n# Gitlab inserts carriage returns into its variables because it's a piece of shit.\n- ssh-add \u003c(echo \"${SSH_PRIVATE_KEY}\" | tr -d '\\r')\n- 'echo \"${SSH_HOST_KEY}\" | tr -d \"\\r\" \u003e ~/.ssh/known_hosts'\n- 'echo \"${SSH_CONFIG}\" | tr -d \"\\r\" \u003e ~/.ssh/config'\n```\n\nLast line is optional, use only if you have an ssh config you want to be using.\n\nDo preserve the comment, otherwise you're running the risk of dishonoring the 2+\nhrs it took me to find out why using ssh-agent JUST. WOULDN'T. WORK.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadimit%2Fdocker-scp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadimit%2Fdocker-scp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadimit%2Fdocker-scp/lists"}