{"id":17653893,"url":"https://github.com/fifsky/ssh-action","last_synced_at":"2025-04-05T12:09:05.218Z","repository":{"id":47547843,"uuid":"206040030","full_name":"fifsky/ssh-action","owner":"fifsky","description":"🖥 github ssh action","archived":false,"fork":false,"pushed_at":"2023-10-26T01:40:30.000Z","size":256,"stargazers_count":165,"open_issues_count":4,"forks_count":63,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-25T11:39:35.430Z","etag":null,"topics":["github-actions","ssh","workflow"],"latest_commit_sha":null,"homepage":"","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/fifsky.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":"2019-09-03T09:29:13.000Z","updated_at":"2024-10-25T01:08:55.000Z","dependencies_parsed_at":"2024-06-18T12:16:36.779Z","dependency_job_id":"cfe98aaa-de14-4f95-814a-a34b6fdf3e34","html_url":"https://github.com/fifsky/ssh-action","commit_stats":{"total_commits":66,"total_committers":7,"mean_commits":9.428571428571429,"dds":"0.12121212121212122","last_synced_commit":"58b3c484be9c20cf118fd3b939a6d2cb3c769512"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":"actions/container-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fifsky%2Fssh-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fifsky%2Fssh-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fifsky%2Fssh-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fifsky%2Fssh-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fifsky","download_url":"https://codeload.github.com/fifsky/ssh-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332612,"owners_count":20921853,"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":["github-actions","ssh","workflow"],"created_at":"2024-10-23T12:07:26.819Z","updated_at":"2025-04-05T12:09:05.196Z","avatar_url":"https://github.com/fifsky.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Remote SSH Commands\n\n![](https://github.com/fifsky/ssh-action/workflows/test/badge.svg)\n\nSimple GitHub Action to run a command on a remote server using SSH. This is working with the latest [GitHub Actions](https://github.com/features/actions).\n\n⭐️ SSH password are supported from version 0.0.3\n\n## ✨ Example Usage\n\n**Example using OpenSSH private key**\n\n```yml\n- name: ls -a via ssh\n  uses: fifsky/ssh-action@master\n  with:\n    command: |\n      cd /tmp\n      ls -a\n    host: ${{ secrets.HOST }}\n    user: root\n    key: ${{ secrets.PRIVATE_KEY}}\n```\n\n🔐 Set your secrets here: `https://github.com/USERNAME/REPO/settings/secrets`.\n\nCheck out [the workflow example](.github/workflows/test.yml) for a minimalistic yaml workflow in GitHub Actions.\n\n**Result**\n\n![result of example ssh workflow](result.png)\n\n## Options\n\n- **host** - _string_ - Hostname or IP address of the server. **Default:** `'localhost'`\n\n- **port** - _integer_ - Port number of the server. **Default:** `22`\n\n- **user** - _string_ - Username for authentication. **Default:** (root)\n\n- **key** - _string_ - Required, that contains a private key for either key-based or hostbased user authentication (OpenSSH format). **Default:** (none)\n\n- **pass** - _string_ - Password for authentication. \n\n- **args** - _string_ - SSH parameters for example: -tt.\n\n\u003e Password and Private Key can only be configured one item\n\n\nIf you need to add some extra SSH parameters, you can setting the args option.\n\nFor example, add `-tt` parameter to solve: https://github.com/fifsky/ssh-action/issues/4\n\n```\nPseudo-terminal will not be allocated because stdin is not a terminal.\n```\n\n## Tips\n\nIf emitting \"mesg: ttyname failed: Inappropriate ioctl for device\", You need to modify your Linux files as follows\n\n```\nvim /root/.profile\n// Modify the \"mesg n || true\"  to \"tty -s \u0026\u0026 mesg n || true\"\n```\n\n\n## Thanks\n\nDocumentation and parameters design from:\nhttps://github.com/garygrossgarten/github-action-ssh\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffifsky%2Fssh-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffifsky%2Fssh-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffifsky%2Fssh-action/lists"}