Skip to content

matheusvanzan/sshpass-action-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

SSHPASS Github Action

CI

Example usage for sshpass-action

- 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

About

Sample project for matheusvanzan/sshpass-action

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published