If you’ve recently upgraded your vCenter Server Appliance from 7.0 Update 3 to 8.0 Update 3, you may encounter a frustrating issue:
SSH works briefly during boot, but once vCenter services fully start, SSH immediately disconnects and becomes unusable.

Below is how the issue typically looks:

You may get an SSH prompt for a second, but as soon as services finish starting, the connection drops with no useful error message.

Root Cause

The problem is caused by invalid entries in the file: /etc/sysconfig/proxy

When this file contains malformed data, the script: /etc/profile.d/proxy.sh fails during SSH login, causing the system to terminate the session immediately.

This is why SSH dies only after vCenter services start — the proxy script gets executed during login shell initialization.


Symptom Summary

  • SSH works for a few seconds during early boot
  • After vCenter services become active, SSH access ends abruptly
  • Rebooting does not fix the issue

Step-by-Step Solution (Emergency Mode Repair)

Below is the exact action plan to restore SSH functionality by repairing the proxy configuration file.


Take a Snapshot of the vCenter Server

Before making any changes, take a snapshot without memory, or better, ensure a clean shutdown snapshot or a reliable backup in case you need to restore the vCenter.

This ensures you can safely roll back if anything unexpected happens.


Boot vCenter Into Emergency Mode

  1. Open the ESXi host UI or vSphere Client where the vCenter VM resides.
  2. Reboot the vCenter appliance.
  3. As soon as the OS starts loading, press E to edit the GRUB boot entry.
  4. Find the line starting with linux.
  5. Append the following at the end of that line: systemd.unit=emergency.target, them press F10

This forces the appliance to boot into emergency mode with minimal services.


Remount the Filesystem as Read/Write

Once in emergency mode, run:

mount -o remount,rw /

This is necessary to modify system files.


Fix the Proxy Configuration File

Navigate to the sysconfig directory:

cd /etc/sysconfig

Your goal is to remove the first (invalid) line from the proxy config and back it up properly.

Run the following commands:

  1. Backup everything except the first line tail -n 27 proxy > proxy.bak
  2. Create a second backup cp proxy proxy.bak2
  3. Replace the original faulty file cp proxy.bak proxy

This removes the corrupt line that caused the proxy.sh script to fail.


Unmount and Reboot

Unmount:

umount /

Force reboot:

reboot -f


Final Result

After rebooting, SSH should now work correctly again.

You can now access your vCenter Server Appliance via SSH without interruptions.