Introduction
A server migration can move the application successfully while an SSH host alias still connects administrators to the old machine. Direct SSH to the new hostname may already work, but a saved alias in ~/.ssh/config, a terminal profile, or deployment shortcut keeps opening the retired host and makes the migration look incomplete.
Treat this as a saved-admin-endpoint problem instead of a generic SSH outage. Start by checking the exact alias and target values your team actually uses, because post-migration SSH failures often come from inherited shortcuts that still map to the previous host, IP, or jump path.
Symptoms
- An SSH host alias still connects to the old server after migration
- Direct SSH to the new hostname works, but the usual shortcut opens the previous machine
- Terminal banners, hostnames, or file paths reveal the wrong server after login
- Scripts or deployment commands using a saved alias still operate on legacy infrastructure
- One administrator reaches the new host while another still lands on the old one through the same alias name
- The issue started after server migration, hostname cutover, or updating shared admin instructions
Common Causes
- The SSH alias in
~/.ssh/configstill points to the old hostname or IP - A
ProxyJump, bastion path, or intermediate alias still leads to legacy infrastructure - Shared scripts or deployment tooling continue to call an outdated alias name
- One team member updated direct SSH targets but not the saved alias used in day-to-day work
- DNS for the legacy SSH hostname still resolves while the alias still references it
- Migration validation focused on direct host access instead of saved administrator shortcuts
Step-by-Step Fix
- Run the exact SSH command or alias that still reaches the wrong server and record the effective target, because you need to confirm the real client-side path before changing host settings.
- Check the alias definition in
~/.ssh/configor any shared SSH config source, because one staleHostName,User, orProxyJumpentry can silently send admins to the old machine. - Compare the alias target with the intended post-migration SSH endpoint, because the migration may have changed the hostname, IP, or jump-host chain.
- Review scripts, deployment jobs, terminal profiles, and internal docs that call the alias, because one reused shortcut can keep the wrong endpoint alive even after direct SSH tests pass.
- Verify the server identity you reach through the alias by checking hostname, banner, or known expected files, because successful login alone does not prove you are on the new machine.
- Update the alias at the actual config source and remove any stale jump-host or hostname reference, because partial edits can leave the legacy path active.
- Retest with the same alias and compare it with a direct SSH connection to the intended new server, because both methods should now reach the same destination.
- Confirm any scripts or automation that use the alias also land on the new host, because operational shortcuts often preserve the old target after interactive access is fixed.
- Document the final SSH alias mapping and retire obsolete shortcuts, because saved admin endpoints are easy to overlook during future server migrations.