2ue/ssh2-to-remote-action

An action to upload a local directory to a remote server via SSH2 SFTP

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Aug 9, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: 2ue/ssh2-to-remote-action@c4cf55f4f62c91400d29b82642ef082961155a38 # v1.0.17

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

namedescriptionrequireddefault
hostThe remote host to connectyes
portThe port to use for the connectionno22
usernameThe username for authenticationyes
passwordThe password for password-based user authenticationno
forceIPv4Force IPv4 connectionsnofalse
forceIPv6Force IPv6 connectionsnofalse
agentPath to ssh-agentno
privateKeyPrivate key for key-based user authenticationno
passphrasePassphrase for the private keyno
readyTimeoutHow long (in ms) to wait for the SSH handshakeno20000
strictVendorPerforms a strict server vendor checknofalse
debugFunction to use for debug informationnofalse
retriesNumber of times to retry connectingno1
retry_factorTime factor used to calculate time between retriesno2
retry_minTimeoutMinimum timeout between attemptsno1000
promiseLimitMaximum number of concurrent promises for directory operationsno10
local_dirLocal directory to uploadyes
remote_base_dirRemote base directory to which to uploadyes
remote_bak_pathRemote backup path (optional)no
namedescription
uploaded_filesNumber of files uploaded
successWhether the upload was successful
errorError message if upload failed