Knowledge centre

Connect with SSH, verify the server

A safe first-connection checklist for a real Linux server you control.

2 min readEnglish

Content revised · English

At a glance
Guide type
Operate & secure
Examples
Illustrative, environment-specific
Integration scope
No remote machine connected
01

Obtain the connection details from a verified route

A real server needs a confirmed IP or hostname, login account, SSH port and server-key fingerprint. The account workspace does not generate these. The address below is reserved for documentation; replace it only with information from the operator’s verified delivery record.

02

Verify the host before authenticating

Compare the offered host-key fingerprint with a value obtained through a separate trusted route, such as the live operator’s console. Do not treat ssh-keyscan output from the same untrusted network as independent proof. An unexpected key change can be a rebuilt machine or an attack; establish the cause before accepting it.

Connection syntax · documentation addressReview for your environment
ssh -p 22 operator@192.0.2.20
03

Create a dedicated authentication key

On a client with OpenSSH installed, generate an Ed25519 key with a passphrase. The file without .pub is private and stays on your client; the .pub file can be installed in the server account’s authorized_keys. Do not upload the private half to the server or a ticket.

Run on your own clientReview for your environment
ssh-keygen -t ed25519 -f ~/.ssh/ombra_admin -C "ombra-admin"
ssh-copy-id -i ~/.ssh/ombra_admin.pub -p 22 operator@192.0.2.20
04

Test a second session with the key

Keep the original login open and connect from a second terminal using the new identity. Confirm that you can run the administration tasks you need. Only after that should you disable password or direct root authentication.

Confirm key-based accessReview for your environment
ssh -i ~/.ssh/ombra_admin -p 22 operator@192.0.2.20
sudo -v
05

Preserve a route back in

Keep a verified console or rescue method available before changing ports or authentication. Document which account and key administer the server. If the live environment is rebuilt, verify the new host identity rather than blindly deleting the old record.

BEFORE THE NEXT STEP

Leave with a verifiable result.

  • Obtain the connection details from a verified route.
  • Preserve a route back in.
  • Keep recovery information and secrets outside public files.
GO TO THE PRIMARY SOURCEOpenSSH · client manualOpenSSH · key generation