{"id":21533293,"url":"https://github.com/alinz/ssh-scp-action","last_synced_at":"2025-04-10T00:43:23.134Z","repository":{"id":65158818,"uuid":"222616041","full_name":"alinz/ssh-scp-action","owner":"alinz","description":"Github actions for executing commands and uploading files to remote server","archived":false,"fork":false,"pushed_at":"2020-09-17T20:58:58.000Z","size":6,"stargazers_count":27,"open_issues_count":1,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T00:43:16.838Z","etag":null,"topics":["actions","bash","github","scp","ssh"],"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/alinz.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}},"created_at":"2019-11-19T05:32:05.000Z","updated_at":"2024-03-14T08:00:03.000Z","dependencies_parsed_at":"2023-01-05T04:51:29.695Z","dependency_job_id":null,"html_url":"https://github.com/alinz/ssh-scp-action","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"97ad76feb6460d3392b63f11ac354568c89b8968"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alinz%2Fssh-scp-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alinz%2Fssh-scp-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alinz%2Fssh-scp-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alinz%2Fssh-scp-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alinz","download_url":"https://codeload.github.com/alinz/ssh-scp-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137998,"owners_count":21053775,"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":["actions","bash","github","scp","ssh"],"created_at":"2024-11-24T02:28:06.159Z","updated_at":"2025-04-10T00:43:23.114Z","avatar_url":"https://github.com/alinz.png","language":"Shell","readme":"# SSH and SCP Setup in GITHUB's Action\n\nSetup ssh agent for both ssh and scp. Script can be run before and after scp operation has been completed\n\n## USAGE\n\n```yml\n- name: Operations\n  uses: alinz/ssh-scp-action@master\n  env:\n    HELLO: cool\n    MESSAGE: hello world\n  with:\n    key: ${{ secrets.SSH_KEY }}\n    host: example.com\n    port: 22\n    user: john\n    # runs this on remove server\n    ssh_before: |\n      rm -rf sample1.dat sample2.dat\n      echo $HELLO\n      echo $MESSAGE\n      ls -lath\n\n    # then uploads these 2 files\n    scp: |\n      sample1.txt john@example.com:~/sample1.dat\n      sample2.txt john@example.com:~/sample2.dat\n\n    # then run these commands\n    ssh_after: |\n      echo $HELLO\n      echo $MESSAGE\n      ls -lath\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falinz%2Fssh-scp-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falinz%2Fssh-scp-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falinz%2Fssh-scp-action/lists"}