# remote: Use SSH nicknames in display names \(\#53103\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/eeb87cb17768c4a1372047ad67a1e9a1d7dd507b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: eeb87cb17768c4a1372047ad67a1e9a1d7dd507b

Requested commit: eeb87cb17768c4a1372047ad67a1e9a1d7dd507b

Commit: eeb87cb17768c4a1372047ad67a1e9a1d7dd507b

Tree: ea269a2be93986a898fdbef24cc30ff0ffafb16f

Author: Saketh

Committer: GitHub

## Message

```
remote: Use SSH nicknames in display names (#53103)

Closes #52943

## Summary
- Prefer SSH nicknames over raw hosts in remote connection display names
- Add regression tests for nickname and host fallback behavior

## Why
The `nickname` field is documented as the user-facing label for SSH
connections, but `RemoteConnectionOptions::display_name()` always
returned the raw host. That meant recent-projects UI surfaces kept
ignoring nicknames even when they were configured.

## Validation
- `cargo test -p remote ssh_display_name`
- `cargo test -p remote`

Release Notes:

- Fixed SSH recent-project labels to show configured nicknames instead
of raw hosts when available.
```

## Parents

- [e9b280afe00815cced8c50ca6e97d7987e5782ec](https://git.cafe/gitcafe/zed/commit/e9b280afe00815cced8c50ca6e97d7987e5782ec?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/eeb87cb17768c4a1372047ad67a1e9a1d7dd507b?format=markdown)
