2ue/ssh2-to-remote-action
An action to upload a local directory to a remote server via SSH2 SFTP
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Aug 9, 2025
- License
- MIT
Pinned Snippet
uses: 2ue/ssh2-to-remote-action@c4cf55f4f62c91400d29b82642ef082961155a38 # v1.0.17tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| host | The remote host to connect | yes | — |
| port | The port to use for the connection | no | 22 |
| username | The username for authentication | yes | — |
| password | The password for password-based user authentication | no | — |
| forceIPv4 | Force IPv4 connections | no | false |
| forceIPv6 | Force IPv6 connections | no | false |
| agent | Path to ssh-agent | no | — |
| privateKey | Private key for key-based user authentication | no | — |
| passphrase | Passphrase for the private key | no | — |
| readyTimeout | How long (in ms) to wait for the SSH handshake | no | 20000 |
| strictVendor | Performs a strict server vendor check | no | false |
| debug | Function to use for debug information | no | false |
| retries | Number of times to retry connecting | no | 1 |
| retry_factor | Time factor used to calculate time between retries | no | 2 |
| retry_minTimeout | Minimum timeout between attempts | no | 1000 |
| promiseLimit | Maximum number of concurrent promises for directory operations | no | 10 |
| local_dir | Local directory to upload | yes | — |
| remote_base_dir | Remote base directory to which to upload | yes | — |
| remote_bak_path | Remote backup path (optional) | no | — |
Outputs
| name | description |
|---|---|
| uploaded_files | Number of files uploaded |
| success | Whether the upload was successful |
| error | Error message if upload failed |