kangketikonlen/SSH-SCP-SSH Pipeline

Connect to a server to run commands, copy files, and run more commands, all in one action.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Aug 11, 2025
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: kangketikonlen/ssh-pipeline@44bede38524a3e12f047d7b4bed7d71280223dd3 # v0.0.3

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
hostRemote server hostname or IP address.yes
portSSH port on the remote server.no22
userSSH username for the remote server.yes
keySSH private key to authenticate. (Use GitHub secrets!)no
passSSH password to authenticate. (Use GitHub secrets!)no
known_hostsThe public host key of the remote server to prevent MITM attacks. (Use GitHub secrets!)yes
connect_timeoutConnection timeout. Use 's' for seconds, 'm' for minutes. Ex: '60s' or '1m'.no30s
first_sshMultiline block of commands to run before the SCP transfer.no
scpMultiline block of files to copy. Format: 'local/path => remote/path'no
last_sshMultiline block of commands to run after the SCP transfer.no

no outputs