ubuntu22.04镜像编译openssh - Mon, Aug 5, 2024
ubuntu22.04镜像编译
下载镜像
podman pull ubuntu:22.04
下载openssh
git clone https://github.com/openssh/openssh-portable.git
安装编译环境
podman run --rm -it -v $PWD:/mnt/ 192.168.1.118:5000/ubuntu:22.04 bash
sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list
sed -i 's/security.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list
apt-get install build-essential
apt-get install zlib1g-dev autoconf libssl-dev libfido2-dev libpam0g-dev
cd /mnt/
autoreconf
./configure --prefix=$PWD/opt/ --with-pam
mkdir opt
make
make install