SSH Credentials
Creates an SSH credential from a private key file.
Inputs#
| Port | Description |
|---|---|
The username for SSH authentication, e.g. git or ubuntu. |
|
File path to the private key. Supports ~ and environment variable expansion. The key file can be in RSA (PKCS#1), PKCS#8, DSA (OpenSSL), or ECDSA format. |
Outputs#
| Port | Description |
|---|---|
invalid port type: credentials |
The SSH credential object. |
Addendum#
This is a data node that securely holds SSH private key information by reading it from a file. It outputs a credential object that can be consumed by other nodes (like git-auth-ssh) to construct a final authentication method.
The path to the private key can contain environment variables (e.g., $HOME) and the tilde ~ character, which will be expanded automatically.
Security
Always use the secret input type for passwords to ensure they are handled securely.
ID: core/credentials-ssh@v1