TechBuzzPro

Putty Blank Screen on SSH: Fixes That Work

· 5 min read · Windows & PC

In this article
  1. Why PuTTY Shows a Blank Screen
  2. Quick Fixes to Try First
  3. Common Cause: Terminal Type Mismatch
  4. Another Cause: SSH Protocol Version
  5. Blank Screen After Login
  6. When the Server Sends a Different Protocol
  7. Advanced Diagnostic Steps
  8. Frequently Asked Questions

When PuTTY connects to an SSH server but shows a blank screen instead of a login prompt, the fix is usually one of three things: the server is sending a different protocol version than expected, the connection is being dropped immediately after authentication, or the terminal type is causing the remote shell to misbehave. This article covers the most common causes and the step-by-step fixes that resolve them.

Why PuTTY Shows a Blank Screen

PuTTY is an SSH client that opens a terminal window and connects to a server. A blank screen means the TCP connection succeeded (otherwise you'd see an error), but the SSH session is not presenting a usable shell. The server may be waiting for input you can't see, or the remote shell may have crashed, or the SSH handshake is failing silently.

Quick Fixes to Try First

  1. Press Enter a few times. Sometimes the remote shell is waiting for a newline before it prints the prompt.
  2. Type exit and press Enter, then reconnect. This clears a stuck session.
  3. Check the connection with a different client (like OpenSSH's ssh command) to see if the server itself is the problem.
  4. Restart PuTTY completely (not just close the window) to clear any cached state.

Common Cause: Terminal Type Mismatch

PuTTY sends a terminal type string (by default xterm) during the SSH handshake. Some servers or shell configurations expect a different terminal type and respond by not printing a prompt. To fix this, change the terminal type in PuTTY:

  1. Open PuTTY and load your saved session.
  2. Go to Connection > Data.
  3. In the Terminal-type string field, replace xterm with linux or vt100.
  4. Click Open again.

If the server uses a restricted shell or a menu system, it may also require a specific terminal type. For example, some network appliances only work with vt100.

Another Cause: SSH Protocol Version

PuTTY defaults to SSH version 2, which is standard and secure. However, some older or misconfigured servers only support SSH version 1 (which is obsolete and insecure). If you're connecting to legacy hardware, try forcing SSH version 1:

  1. In PuTTY, go to Connection > SSH.
  2. Under Protocol options, select SSH-1 (only if you know the server supports it).
  3. Try connecting again.

If that works, the server is outdated. It's better to update the server software than to use insecure SSH-1.

Blank Screen After Login

If you see the login prompt, enter your credentials, and then the screen goes blank, the problem is likely the remote shell or the terminal environment. This often happens when the default shell is set to something that isn't installed, or when the shell's startup files (like .bashrc or .profile) contain a command that hangs or clears the screen.

To work around this, try these steps:

  • After logging in, type bash or sh to start a new shell.
  • If that works, edit your remote .bashrc to remove any command that might cause a hang (like a clear command or a bad alias).
  • If you can't get any prompt, connect with a different client (like OpenSSH) to see if it's PuTTY-specific.

When the Server Sends a Different Protocol

Some servers, especially those behind load balancers or firewalls, might send a banner or a different protocol message that PuTTY doesn't handle well. This can cause PuTTY to display nothing. A workaround is to enable SSH keepalives to prevent the connection from being dropped:

  1. In PuTTY, go to Connection.
  2. Set Seconds between keepalives to a value like 30.
  3. Click Open.

Keepalives send a small packet periodically to keep the connection alive, which can also help if the server is silently closing idle connections.

Advanced Diagnostic Steps

If the above don't work, you need to see what the server is actually sending. PuTTY has a built-in logging feature:

  1. In PuTTY, go to Session > Logging.
  2. Choose All session output and pick a log file.
  3. Connect again and then open the log file in a text editor.

If the log shows the SSH handshake but no shell prompt, the server is likely not sending the expected terminal data. If the log shows nothing after the handshake, the connection is being closed abruptly.

You can also run ssh -vvv user@host from a local terminal to see verbose SSH output. This will show exactly where the handshake fails.

Frequently Asked Questions

Why does PuTTY show a blank screen only sometimes?

Intermittent blank screens often point to network issues, like MTU problems or a firewall that drops large packets. Try changing the MSS or MTU settings in PuTTY under Connection > SSH > Bugs (uncheck the relevant options). Also, try a different network (like a phone hotspot) to see if it's your local network.

Can a firewall cause a blank screen?

Yes. A firewall or NAT device might allow the TCP connection but block the SSH data packets, resulting in a blank screen. Try connecting from a different network or temporarily disabling the firewall (if you have control) to test.

Does the server's SSH configuration matter?

Yes. If the server has PermitRootLogin set to no and you're trying to log in as root, you might get a blank screen after authentication. Also, if the server uses a non-standard shell or a restricted shell, it might not print a prompt. Check the server's /etc/ssh/sshd_config for any unusual settings.

What if I see a blank screen but the connection is still active?

Press Ctrl+C or Ctrl+Z to interrupt any running process. Sometimes a command like top or vim can leave the terminal in a state where no prompt is shown. Typing reset and pressing Enter may also help.

Is there a way to avoid this problem entirely?

Use a different SSH client like OpenSSH (built into Windows 10/11) or MobaXterm. If you must use PuTTY, save your session with the correct terminal type and keepalive settings. Also, make sure your server's SSH configuration is standard and doesn't have any unusual ForceCommand directives.