# openssh/openssh-portable SLOC report

> openssh/openssh-portable: 171,138 code lines at commit e651bed9fa66, counted with tokei-15.0.0 on 2026-11-16. Saved result 9ee52d02ad3577e0909cf81ab517aca370c9873168a32bc58e9244d720979883.

openssh/openssh-portable has 171,138 source lines of code out of 226,110 total lines across 643 files, counted with tokei from the master ref at commit e651bed9fa66 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving openssh/openssh-portable to commit e651bed9fa66, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

openssh/openssh-portable: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a large codebase by counted code lines. Code represents 75.7% of all lines, comments represent 14.3%, and the repository averages 266 code lines per file. C accounts for 72.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 310 | 158,187 | 123,732 | 18,581 | 15,874 |
| C Header | 116 | 43,162 | 28,226 | 11,297 | 3,639 |
| Shell | 134 | 15,689 | 11,980 | 1,729 | 1,980 |
| C++ | 24 | 2,331 | 1,759 | 301 | 271 |
| Autoconf | 8 | 1,963 | 1,570 | 137 | 256 |
| RPM Specfile | 2 | 1,065 | 847 | 38 | 180 |
| JSON | 2 | 810 | 810 | 0 | 0 |
| Makefile | 22 | 1,023 | 771 | 53 | 199 |
| BASH | 2 | 970 | 713 | 164 | 93 |
| AWK | 1 | 378 | 349 | 22 | 7 |
| M4 | 1 | 232 | 197 | 30 | 5 |
| HTML | 1 | 91 | 90 | 0 | 1 |
| Bitbake | 13 | 110 | 89 | 4 | 17 |
| Prolog | 2 | 2 | 2 | 0 | 0 |
| Q | 2 | 2 | 2 | 0 | 0 |
| C Shell | 1 | 1 | 1 | 0 | 0 |
| Markdown | 2 | 94 | 0 | 62 | 32 |

Top language: C 72.3%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/openssh/openssh-portable/commit/e651bed9fa666ca27c61bab778634ec48b791db3?reportId=9ee52d02ad3577e0909cf81ab517aca370c9873168a32bc58e9244d720979883&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/openssh/openssh-portable/commit/e651bed9fa666ca27c61bab778634ec48b791db3?reportId=9ee52d02ad3577e0909cf81ab517aca370c9873168a32bc58e9244d720979883&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does openssh/openssh-portable have?

openssh/openssh-portable has 171,138 lines of code, plus 32,418 comment lines and 22,554 blank lines, for 226,110 total lines at commit e651bed9fa66 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the openssh/openssh-portable line count measured?

OctoCounts resolved the public GitHub repository to commit e651bed9fa66, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for openssh/openssh-portable?

This OctoCounts report was generated from master at commit e651bed9fa66 on November 16, 2026.

## Similar repository reports

- [Zero3K/XSupplicant](https://octocounts.com/github/Zero3K/XSupplicant) — C, 172,830 code lines
- [oosexgang/hakios-xnu-kernel](https://octocounts.com/github/oosexgang/hakios-xnu-kernel) — C, 173,557 code lines
- [FUjr/QModem](https://octocounts.com/github/FUjr/QModem) — C, 168,208 code lines
- [ossec/ossec-hids](https://octocounts.com/github/ossec/ossec-hids) — C, 174,692 code lines
- [mackron/miniaudio](https://octocounts.com/github/mackron/miniaudio) — C, 167,086 code lines
- [Stredohori/Winlator-CMOD](https://octocounts.com/github/Stredohori/Winlator-CMOD) — C, 166,300 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
