Skip to content
Blue Unlimited Lab
Guide · SSH

SSH: use another computer, and stop typing passwords

Log in to another computer safely with SSH, make a key pair so you do not type a password, and save the connection under a short name.

Reading time8 min
Tested on2026-10-25

Log in to another computer safely with SSH, make a key pair so you do not type a password, and save the connection under a short name.

In plain words

Imagine you could sit at another computer, far away, and type on its keyboard, with only the words going through a secret tunnel that nobody else can listen to. That is SSH. It is also how a computer checks who you are before it lets you in: with a password, or better, with a key that only you have.

Try it yourself

Connect to a server with the command ssh, giving the user name, an at sign and the server's address (ask whoever runs the server for both):

ssh [email protected]

The first time, SSH asks whether you trust this computer: type yes. Then type your password; nothing appears while you type, which is normal. When you see a new prompt on the other computer, you are inside. Try whoami, then ls, then exit to leave. If it says Permission denied, check the user name and the password, and try once more.

A step further: keys instead of passwords

A key comes as a pair: a private part that stays on your computer, and a public part you give to the server. Make one:

ssh-keygen -t ed25519 -C "[email protected]"

Press Enter for the defaults. The public part is the file ending in .pub. Put it on the server with ssh-copy-id [email protected], or ask the person who runs the server to add it. Never send the private part to anyone, and never paste it into a chat or an AI tool. After that you connect without typing a password.

To save typing, put the connection in the file ~/.ssh/config on your own computer:

Host myserver
    HostName server.example.com
    User your-user
    Port 22

Each line goes on its own line, and the last three start with four spaces. After that, ssh myserver is all you type.

How it works in real projects

Servers are run over SSH, and each person has their own key, so one person can be removed without changing anyone else's access. Git hosting uses SSH too: an address that starts with [email protected] means Git talks to GitHub through the same kind of tunnel and key. Passwords for servers are used only where keys are not possible, and they are never kept in files or sent in messages.

Tools in this guide

Not sure where to start? Tell us what's slowing you down. Let's chat.

Let's chat

Content CMS · 2026-11-24 13:36 UTC · App f73c8ed