What SSH Access Do You Need to Migrate a VPS?
By Small Corner Labs ·
A server-to-server migration needs two authorized connections: one to read the intended workload on the source and one to restore and configure it on the destination. The two access profiles can use different users and have different permissions.
Document each connection separately
Record the hostname, port, account, and expected host-key fingerprint for each machine. Verify the fingerprint through the provider console or another trusted channel before accepting it. Give the connections meaningful names such as source and destination to reduce the chance of changing the wrong server.
On the source, identify the files and backups the operator is allowed to read. On the destination, restrict writes to the deployment paths and service operations needed for the move. Plan separately for actions that genuinely require administrative access.
Keep access material out of the copy
Treat authentication material as separate from application data. Use dedicated, scoped SSH keys where practical. Keep private keys on the authorized client, or in an approved secret manager, and avoid copying them as part of home-directory contents.
List credentials that must be reissued or reconfigured for the application, such as database users or service accounts. Some credentials are tied to the source host or a network allowlist. Verify access on the destination before pointing production at it.
Rehearse an operation with no writes
Connect to both hosts and confirm identity, user, and target directories. Verify you can read the required source paths and that the destination has the capacity and permissions for the restore. Remove temporary migration access when verification and rollback windows are complete.
Quick checklist
- Confirm two authorized connections and host fingerprints.
- Separate source read permissions from destination write permissions.
- Store authentication material separately from transferred files.
- Revoke temporary access after the move.
