Skip to content

Action that configures local openssh with provided host and credentials

Notifications You must be signed in to change notification settings

PressCentric/Action-Setup-SSH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Slack Notification

Github composite action that configures local openssh with provided host and credentials.

Instructions

Add the action call to your build script YAML and provide your SSH credentials and private key:

  - name: Set up SSH
    uses: PressCentric/Action-Setup-SSH@master
    with:
      server-name: dev
      host: ${{ secrets.SSH_DEV_HOST }}
      port: ${{ secrets.SSH_DEV_PORT }}
      user: ${{ secrets.SSH_DEV_USER }}
      private-key: ${{ secrets.SSH_DEV_PRIVATE_KEY }}

then you can simply run

ssh dev 'pwd'
scp text.txt dev:/target-dir/

About

Action that configures local openssh with provided host and credentials

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published