SSH and WinRM Troubleshooting
Troubleshoot common SSH and WinRM deployment failures in Harness Continuous Delivery
This topic outlines troubleshooting methods for Secure Shell (SSH) and Windows Remote Management (WinRM) deployments in Harness. Use it when Shell Script, Command, or WinRM steps fail with access, exit-code, or connectivity errors.
What you will learn from this topic
How to resolve PowerShell "Access is denied" errors on network paths during WinRM sessions
How to make Shell Script steps fail correctly when PowerShell reports non-terminating errors
How to clear WinRM authorization-loop and connectivity failures
How to capture exit codes, output variables, and clean up long-running remote processes
Before you begin
Confirm the following before you apply these fixes:
SSH or WinRM deployment path: You are deploying to virtual machines with SSH or WinRM. Go to VM deployments using SSH or Windows VM deployments using WinRM to review the deployment setup.
Pipeline access: View and Execute permissions on the pipeline so you can re-run steps after a fix.
Host access: Credentials and network access to the target host (SSH port or WinRM port
5985/5986as configured).
Troubleshooting
Expand an issue below for the resolution and sample commands.
Next steps
VM deployments using SSH: Configure SSH-based traditional deployments.
Windows VM deployments using WinRM: Configure WinRM-based traditional deployments.
SSH and WinRM FAQs: Review frequently asked questions for SSH and WinRM.
Last updated
Was this helpful?