---
title: "SSH: use another computer, and stop typing passwords"
summary: "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."
url: "https://lab.blue-unlimited.com/en/learn/ssh-and-keys"
language: en
updated: "2026-10-25"
---

[Home](https://lab.blue-unlimited.com/en) / [Learn](https://lab.blue-unlimited.com/en/learn) / SSH: use another computer, and stop typing passwords

**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 time**: 8 min
- **Tested on**: 2026-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):

```bash
ssh your-user@server.example.com
```

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:

```bash
ssh-keygen -t ed25519 -C "you@example.com"
```

Press Enter for the defaults. The public part is the file ending in `.pub`. Put it on the server with `ssh-copy-id your-user@server.example.com`, 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:

```text
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 `git@github.com` 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

- [AI Workshops](https://lab.blue-unlimited.com/en/ai-workshops) (More time, Internal): AI agents and skills built around your processes and your voice, and your team trained to work with them safely.

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

[Let's chat](https://lab.blue-unlimited.com/en/contact?cta=chat&item=ssh-and-keys)
