2024-03-01 17:15:36 +08:00
2024-03-01 05:22:46 +00:00
2024-03-01 08:41:46 +00:00
2024-03-01 05:22:46 +00:00
2024-03-01 08:41:46 +00:00
2024-03-01 08:53:11 +00:00
2024-03-01 17:15:36 +08:00
2024-03-01 16:51:38 +08:00

Latest OpenSSH for Debian / Ubuntu release.

A simple script to build latest deb package, using Debian sid packaging sources.

Similar Project: Latest OpenSSH RPM for CentOS

Direct Build

Install Dependencies

sudo apt install pkgconf build-essential fakeroot dpkg-dev debhelper debhelper-compat dh-exec dh-runit libaudit-dev libedit-dev libfido2-dev libgtk-3-dev libselinux1-dev libsystemd-dev

Build

# pull source from debian sid
./pullsrc.sh

# direct build
./compile.sh

Use Docker to Build

Build DEBs without installing a bunch of dev packages in your system.

./pullsrc.sh
docker build \
    -t opensshbuild \
    --build-arg DISTRO=ubuntu \
    --build-arg DISTVER=22.04 \
    --build-arg APT_MIRROR=ftp.us.debian.org \
    ./docker
docker run --rm -v $PWD:/data opensshbuild
docker image rm opensshbuild

Install DEBs

All DEBs are generated right under build directory. (Either direct build or with docker).

ls -l build/*.deb

# Ignore thoses files with dbgsym and tests
# Normally all you need is these 3 debs.
# openssh-client openssh-server openssh-sftp-server
Description
No description provided
Readme 1.4 MiB
Languages
Shell 100%