SSH over HTTPS with OpenSSH and curl
Use your regular SSH client to reach Bifröst through HTTPS instead of a direct SSH port. SSH authentication, host-key verification, SFTP and forwarding policies remain unchanged.
Prerequisites
- Bifröst has HTTPS and its SSH tunnel enabled, with a trusted certificate and an SSH-eligible flow. A direct SSH listener and the WebUI are not required.
- You have the flow's normal SSH credentials and the verified Bifröst SSH host-key fingerprint.
- Your workstation has OpenSSH and a suitable curl build.
Configure OpenSSH
Add this to ~/.ssh/config (%USERPROFILE%\.ssh\config on Windows), replacing HostName and User with your server and SSH login name:
1 2 3 4 5 6 | |
OpenSSH replaces %h with HostName. On Windows, use curl.exe instead of curl. Quote executable and file paths containing spaces.
For a private CA, add --cacert "/path/to/ca.pem" to ProxyCommand before the URL; do not disable certificate verification.
Connect
1 | |
Verify the SSH host key against the fingerprint provided by your administrator, then authenticate as usual. HTTPS certificate verification does not replace this SSH host-key check. The configured flow opens through the HTTPS tunnel; the keepalive settings keep idle connections active.
For file transfers, use the same configuration:
1 | |
SFTP and port forwarding are available only when the selected environment and authorization allow them.
Use WSS instead
Use a curl build with working WSS duplex support and replace only ProxyCommand:
1 | |
Warning
Windows curl 8.22.0/Schannel fails simultaneous WSS send/receive and can cause SSH integrity failures. Use the HTTPS/1.1 example above with that build.
Next steps
- SSH gateway to an OpenSSH server routes authenticated sessions to a private SSH target.
- OIDC login adds identity-provider authentication to SSH connections.
- HTTP connection reference covers tunnel switches, TLS configuration and curl compatibility.