Production breaks at the worst time, and the server you need to inspect is the one you cannot log into. Maybe your team removed SSH for security, maybe the host is a managed platform, or maybe the on-call engineer holds the only key and is asleep. Whatever the reason, you can still debug production issues without SSH if you know where else the system leaves traces. Production debugging without SSH starts with the evidence your system already records, and this guide walks through those sources in the order that finds the fault fastest.
How to Debug Production Issues Without SSH
Start by defining the problem in one sentence: what broke, who sees it, and when it started. A vague report like “the site is slow” leads nowhere, while “checkout returns a 500 error for card payments since 14:20” tells you exactly where to look. Check the status page, recent deploys, and any alert that fired in the same window before you open a single log.
Then list what you can reach without SSH: application logs in your log platform, metrics and dashboards, error tracking, your hosting control panel, feature flags, and the deploy history. Most teams have more of these than they think. The goal is to narrow the fault to one layer, app code, database, external service, or infrastructure, before you dig into details.
If you can reproduce the problem in staging, do that first. A staging copy with the same code and a smaller dataset often shows the same error, and there you do have full access. When staging cannot reproduce it, the difference between the two environments becomes a clue by itself.
Read the Logs Like a Timeline
Logs are your best replacement for a shell. Pull the logs for the affected service around the time the problem started, and read them as a timeline rather than a pile of errors. Look for the first error, not the loudest one: the first failure often causes the cascade that follows, while the later errors are just symptoms.
To debug production logs well, filter by the request ID or the affected user when you can. A single request traced from the load balancer through the app to the database tells a clearer story than a thousand mixed lines. If your logs lack request IDs, add them now, while the incident is fresh in your mind, because the next one will need them too.
Compare the broken window with a healthy window from an hour earlier. New error messages, a sudden rise in a specific warning, or a log line that vanished entirely all point somewhere. Our guide to log management tools compares the main options for searching and storing these logs, and picking one that supports fast full-text search pays off exactly in moments like this.
Watch for the common log smells: connection pool exhaustion, timeouts to a downstream service, out-of-memory kills, and disk-full errors from a runaway log file. Each one points at a different fix, and each one is visible in logs long before users notice.
Use Your Observability Stack
Metrics answer questions logs cannot. A graph of request latency, error rate, CPU, memory, and database connections across the incident window shows whether the problem built up slowly or hit all at once. A slow climb in memory points at a leak, while a sudden spike in errors at deploy time points at the release.
Traces add the missing middle. A distributed trace shows how long each step of a request took, so you can see whether the database query, the cache, or the third-party API ate the time. When one span jumps from 50 milliseconds to 8 seconds, you have found your suspect without touching the server.
Set up alerts on the signals that matter, not on every metric. Error rate, latency at the 95th percentile, and saturation of CPU, memory, and connections cover most incidents. If you are choosing tooling, this comparison of Datadog, New Relic, and Grafana lays out what each one does well. And if the server itself looks overloaded, the steps in this guide to diagnosing high server load work from metrics and dashboards alone.
Reproduce the Problem Without Touching the Server
Reproduction beats guessing. Hit the failing endpoint yourself with curl or a browser and note the exact status code, response time, and error body. Try it from a different network and a different account to rule out a client-side cause. If only one user is affected, the bug is probably in their data, not in the code path.
Use a synthetic check: a small script that calls the endpoint every minute and records the result. It tells you whether the failure is constant or intermittent, and whether it tracks traffic volume. Intermittent failures that grow with load often mean a pool, a queue, or a rate limit, while constant failures point at a bad deploy or a broken config.
Check the last deploy before the incident started. Most production bugs arrive with a release, and a deploy log plus a diff is often all you need. If the timeline matches, roll back first and investigate after, because a rollback is faster than a root cause analysis while users wait.
Safe Ways to Get More Signal
When logs and metrics are not enough, add signal without SSH. Turn up log verbosity for the affected service through an environment variable or a config change, then turn it back down after the incident. Temporary debug logging is cheap and safe when it goes through your normal deploy path.
Feature flags are the other safe lever. If you suspect a new code path, switch it off for a slice of traffic and watch the error rate. If errors drop, you have confirmed the cause and bought time for a real fix. If they do not, you ruled out a suspect in minutes.
Some platforms offer a web console, a debug endpoint, or an admin panel that exposes runtime state: active connections, queue depth, cache hit rate, or the current config. Learn what your platform offers before an incident, not during one. A read-only diagnostics page is worth building in advance, since it gives on-call engineers a safe window into a running app.
Health and readiness endpoints deserve a mention too. A health endpoint that reports database connectivity, cache status, and dependency health turns a blind guess into a one-second check, and your load balancer probably already calls it.
Fix, Verify, and Roll Back
Once you have a likely cause, fix it through the normal path: a code change, a config change, or a rollback. Avoid one-off hotfixes applied outside version control, because they create a server state nobody can reproduce. Every production debugging session should end with the fix in Git, not in someone’s memory.
Verify the fix with the same evidence you used to find the bug. The error rate should fall, the slow span should shrink, and the synthetic check should pass. Watch for at least fifteen minutes after the fix, since some problems only show up under real traffic, and a fix that works for one request can fail under load.
If the fix does not work, roll back the change and go back to the evidence. Resist the urge to stack a second fix on top of a first one that did not help, because two changes at once make it impossible to tell which one mattered. A clean rollback is not a defeat. It is how you keep the incident from getting worse while you think.
Some bugs turn out to be build or packaging problems rather than code problems, and the checklist in this guide to debugging a failing Docker build covers the most common ones if your deploy pipeline is container-based.
Build a No-SSH Debugging Kit Before You Need It
The best time to prepare for no-SSH debugging is before the next incident. Make sure your team has centralized logs with request IDs, dashboards for the four golden signals, error tracking with stack traces, and a runbook that lists where each of those lives. A runbook that nobody can find during an incident is the same as no runbook.
Keep a short list of safe levers: how to raise log verbosity, how to toggle a feature flag, how to roll back a deploy, and who can approve each one. Write the steps down with links, not just names, because the person on call at 3 a.m. may not be the person who set the system up.
Finally, review every incident after it ends. Write down what evidence found the fault, what evidence was missing, and what to add before next time. Each review makes production incident debugging faster, and over a year those savings add up to real on-call sanity.