Skip to content

itk-dev/actions-remote-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote SSH Commands

Action to run a command on a remote server using SSH.

Example

- 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

About

Github actions remote ssh

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors