https://github.com/matheusvanzan/sshpass-action
SSHPASS Github Action
https://github.com/matheusvanzan/sshpass-action
github-actions ssh sshpass
Last synced: 1 day ago
JSON representation
SSHPASS Github Action
- Host: GitHub
- URL: https://github.com/matheusvanzan/sshpass-action
- Owner: matheusvanzan
- License: mit
- Created: 2020-07-15T12:59:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-02T14:26:57.000Z (about 4 years ago)
- Last Synced: 2026-03-11T10:41:01.334Z (29 days ago)
- Topics: github-actions, ssh, sshpass
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 17
- Watchers: 1
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SSHPASS Github Action
Github Action to send commands via SSHPASS
## Usage
Example usage can be found at [sshpass-action-example](https://github.com/matheusvanzan/sshpass-action-example)
```
- name: Run sshpass commands
uses: matheusvanzan/sshpass-action@v2
with:
host: ${{ secrets.SERVER_HOST }}
user: ${{ secrets.SERVER_USER }}
pass: ${{ secrets.SERVER_PASS }}
run: |
# your
# commands
# here
```
Optional ssh port
```
- name: Run sshpass commands
uses: matheusvanzan/sshpass-action@v2
with:
host: ${{ secrets.SERVER_HOST }}
port: 22
user: ${{ secrets.SERVER_USER }}
pass: ${{ secrets.SERVER_PASS }}
run: |
# your
# commands
# here
```
Optional private key. In this case it will ignore the password if provided.
```
- name: Run sshpass commands
uses: matheusvanzan/sshpass-action@v2
with:
host: ${{ secrets.SERVER_HOST }}
user: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_KEY }}
run: |
# your
# commands
# here
```
## Changelog
v2
- 'username' and 'password' arguments renamed to 'user' and 'pass'
- accepts optional 'port' argument for the ssh port
- accepts optional 'key' argument for the private key
v1
- initial version