{"id":38894780,"url":"https://github.com/boypt/openssh-deb","last_synced_at":"2026-06-01T03:00:33.842Z","repository":{"id":225303221,"uuid":"765610347","full_name":"boypt/openssh-deb","owner":"boypt","description":"A script to backport openssh deb package, using Debian sid sources.","archived":false,"fork":false,"pushed_at":"2026-06-01T02:14:13.000Z","size":1039,"stargazers_count":79,"open_issues_count":3,"forks_count":33,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-06-01T02:18:50.160Z","etag":null,"topics":["debian","linux","openssh","openssl"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boypt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-01T09:09:06.000Z","updated_at":"2026-06-01T02:14:09.000Z","dependencies_parsed_at":"2024-03-01T10:30:24.594Z","dependency_job_id":"222d6997-4138-4ec8-ba08-5bc486226815","html_url":"https://github.com/boypt/openssh-deb","commit_stats":null,"previous_names":["boypt/openssh-deb"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/boypt/openssh-deb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boypt%2Fopenssh-deb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boypt%2Fopenssh-deb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boypt%2Fopenssh-deb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boypt%2Fopenssh-deb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boypt","download_url":"https://codeload.github.com/boypt/openssh-deb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boypt%2Fopenssh-deb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33757790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debian","linux","openssh","openssl"],"created_at":"2026-01-17T14:58:10.983Z","updated_at":"2026-06-01T03:00:33.837Z","avatar_url":"https://github.com/boypt.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backport OpenSSH for Debian / Ubuntu distros.\n\nA script to build openssh deb backport to older distros, using [Debian sid sources](https://packages.debian.org/sid/openssh-server)\n\nSimilar Project: [Backport OpenSSH RPM for CentOS](https://github.com/boypt/openssh-rpms)\n\n### Current Version:\n\nPackage version are defined in `version.env` file.\n\nCurrent version (CI Build version): (script follows `debian/sid` automatically)\n\n- OpenSSH 10.3p1-3\n- OpenSSL 3.5.6\n\n### Supported (tested) Distro:\n\n- Ubuntu 24.04/22.04/20.04\n- Debian 13/trixie 12/bookworm 11/bullseye\n- UnionTech OS Desktop 20 Home (Debian GLIBC 2.28.21-1+deepin-1) \n- Kylin V10 SP1 (Ubuntu GLIBC 2.31-0kylin9.2k0.1)\n\n## Lazy Install\n\nGithub Action builds common distro DEBs.\n\nIf your server OS is in the supported list, you can download and install them in the server.\n\n### Release supported OSs\n- Debian `bullseye(11)` / `bookworm(12)` / `trixie(13)` - `amd64`/`arm64`\n- Ubuntu  `focal(20.04)` / `jammy(22.04)` / `noble(24.04)` - `amd64`/`arm64`\n\n```bash\nsudo bash -c \"$(curl -L https://github.com/boypt/openssh-deb/raw/master/lazy_install.sh)\"\n```\n\nOr when the host needs a github proxy to access:\n\n```bash\nsudo bash -c \"$(curl -L https://gh-proxy.com/github.com/boypt/openssh-deb/raw/master/lazy_install.sh)\" @ gh-proxy.com\n```\n\n## Direct Build\n\n```bash\n# Install Dependencies\n./install_deps.sh\n\n# pull source\n./pullsrc.sh\n\n# direct build\n./compile.sh\n```\n\n## Docker Build\n\nBuild without installing a bunch of dev packages, and build for different versions of distros.\n\n```bash\n# pull source from debian sid\n./pullsrc.sh\n\n# run with a docker image that fits your target system.\ndocker run --rm -v \"$(pwd):/work\" -w /work ubuntu:20.04 bash -c \"./install_deps.sh \u0026\u0026 ./compile.sh\"\n\n# clean up docker image\ndocker builder prune\n```\n\n\u003cdetails\u003e\n\n\u003csummary\u003eUsing a APT mirror or proxy inside docker\u003c/summary\u003e\n\nusing `-e` to set environment variables inside docker.\n\n```bash\n    docker run --rm -v \"$(pwd):/work\" -w /work \\\n        -e APT_MIRROR=mirrors.ustc.edu.cn \\\n        -e http_proxy=http://x.x.x.x \\\n        -e https_proxy=http://x.x.x.x \\\n        ubuntu:20.04 bash -c \"./install_deps.sh \u0026\u0026 ./compile.sh\"\n```\n\n\u003c/details\u003e\n\n\n## Install DEBs\n\nGenerated DEBs are right under the `output` directory. (both direct build and docker build).\n\n```bash\nls -l output/*.deb\nsudo apt install -y output/*.deb\n```\n\n## NOTES\n\n### Restore distro default version\n\n```bash\nsudo apt update\nV=$(apt-cache madison ssh | awk 'NR==1 {print $3}')\nsudo apt install --allow-downgrades -y \\\n    ssh=$V openssh-client=$V openssh-server=$V openssh-sftp-server=$V\n```\n\n### Known issues \n\n#### sshd-session issue\n\nIf installing backported openssh 9.8+ on older distros, some other programs may face problems while interacting with the openssh service. Since openssh-9.8, the subprocess name have changed from `sshd` to `sshd-session`.\n\nKnown programs with issue:\n\n- fail2ban\n- sshguard\n\nMake sure to upgrade or reconfigure them to meet the latest changes.\n\n##### fail2ban\n\nchange in `filter.d/sshd.conf`:\n\n```\n_daemon = sshd\n```\n\ninto\n\n```\n_daemon = sshd(?:-session)?\n```\n\n\n### Distro Issues\n\nExtra steps are needed to install on some distros.\n\n##### UnionTech OS Desktop 20 Home (Debian GLIBC 2.28.21-1+deepin-1) \n\n1. Exclude `libfido2-dev` from the build Dependencies intall command, it's not available.\n2. Install following packages from `debian/bullseye`.\n    - [bullseye/dwz](https://packages.debian.org/bullseye/dwz)\n    - [bullseye/dh-runit](https://packages.debian.org/bullseye/dh-runit)\n\n##### Kylin V10 SP1 (Ubuntu GLIBC 2.31-0kylin9.2k0.1)\n\nRun `./compile.sh` from the desktop Terminal(`mate-terminal`). \n\nDuring install the `builddep/*.deb`, a `kysec_auth` dialog would pop up asking for installing permissions. Manual click on the permit button is needed. \n\nIf running in a ssh session, the compile script would fail without permissions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboypt%2Fopenssh-deb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboypt%2Fopenssh-deb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboypt%2Fopenssh-deb/lists"}