# WHATPORT(9418)

## NAME

port 9418 — Git protocol (git daemon) — git:// — anonymous, unauthenticated, unencrypted Git clones.

Protocol: TCP  
IANA registry

## DESCRIPTION

git daemon serves the Git pack transfer protocol on 9418, the transport behind git:// URLs; the registration is Linus Torvalds' own, from 2005. It is the fastest way to publish read-only repositories because it does no authentication and no encryption at all, and by default it will only export repositories explicitly marked with git-daemon-export-ok. GitHub disabled git:// entirely in 2022 because an unauthenticated transport gives a network attacker the ability to alter the code you clone.

## EXPOSURE

**Expose with care.** Read-only public mirrors are the design intent, but there is no integrity protection on the wire — prefer HTTPS or SSH, and never enable the receive-pack (push) service, which would let anyone write to your repositories.

## CHECK

```sh
git -c protocol.version=1 ls-remote git://TARGET/repo.git
```

## SEE ALSO

- docs — [git-daemon documentation (default port 9418)](https://git-scm.com/docs/git-daemon) (git-scm.com)
- source — [git/git](https://github.com/git/git) (github.com)
- iana — [IANA port registry — 9418 (git)](https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=9418) (iana.org)

---

HTML: <https://whatport.net/9418/> · JSON: <https://whatport.net/9418.json> · full dataset: <https://whatport.net/ports.json>
