https://github.com/itk-dev/actions-remote-ssh
Github actions remote ssh
https://github.com/itk-dev/actions-remote-ssh
Last synced: 9 months ago
JSON representation
Github actions remote ssh
- Host: GitHub
- URL: https://github.com/itk-dev/actions-remote-ssh
- Owner: itk-dev
- License: agpl-3.0
- Created: 2020-06-26T11:41:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-24T11:41:05.000Z (almost 4 years ago)
- Last Synced: 2025-04-07T03:30:32.357Z (12 months ago)
- Language: Shell
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Remote SSH Commands

Action to run a command on a remote server using SSH.
## Example
```yml
- name: Run remote command
uses: itk-dev/actions-remote-ssh@master
with:
command: |
ls -a /
whoami
host: ${{ secrets.HOST }}
key: ${{ secrets.PRIVATE_KEY }}
cert: ${{ secrets.PUBLIC_KEY_CERT }}
```
You should use GitHub secrest to store the host and private ssh key and the key should be without password.
## Secrets
These options should be create using secrets.
* HOST
* PRIVATE_KEY
* PUBLIC_KEY_CERT
## Options
* command: Command(s) to execute.
* host: FQDN - Server hostname (default: localhost)
* user: Remote SSH username (default: deploy)
* port: Remote port number (default 22)
* key: File Location or string that contains a private key
* cert: Public signed certificate
* args: Extra SSH parameters