// Networking & Security

SSH without the guesswork

Remote terminals, host keys and personal SSH keys.

SSH securely connects you to another computer's shell. It is useful for administering your own systems, but protect both your credentials and the machine you connect to.

Connect to a machine you administer

ssh username@server.example.com

On first connection, check the displayed host-key fingerprint against a trusted source. Don't automatically accept an unexpected changed host key.

Create a modern key pair

ssh-keygen -t ed25519 -C "darkpc personal key"

Choose a strong passphrase when prompted. Your private key remains on your computer; the .pub public key can be given to a server.

Install the public key

Some systems provide:

ssh-copy-id username@server.example.com

Otherwise use the server's documented authorized-keys process. Never send or paste your private key into websites or chat.

A quick config shortcut

Open ~/.ssh/config and add:

Host myserver
    HostName server.example.com
    User username
    IdentityFile ~/.ssh/id_ed25519

You can then connect with ssh myserver. Protect ~/.ssh and private keys with appropriate owner-only permissions.

Good habit: keep the server updated and minimise exposed services. SSH access and website hosting are not the same thing; confirm your host provides SSH before attempting it.

Useful official references