Commit e9e3b4a8 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Updated openssh to 8.6p1

parent c45ca2de
all: sshd-service
tar xf openssh-8.3p1.tar.gz
tar xf openssh-8.6p1.tar.gz
install -v -m700 -d /var/lib/sshd
chown -v root:sys /var/lib/sshd
groupadd -g 50 sshd
useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd -s /bin/false -u 50 sshd
cd openssh-8.3p1 && ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords --with-privsep-path=/var/lib/sshd
$(MAKE) -C openssh-8.3p1
cd openssh-8.6p1 && ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords --with-privsep-path=/var/lib/sshd
$(MAKE) -C openssh-8.6p1
# FIXME: openssh tests failure!
# $(MAKE) -C openssh-8.3p1 tests
$(MAKE) -C openssh-8.3p1 install
cd openssh-8.3p1 && install -v -m755 contrib/ssh-copy-id /usr/bin
cd openssh-8.3p1 && install -v -m644 contrib/ssh-copy-id.1 /usr/share/man/man1
install -v -m755 -d /usr/share/doc/openssh-8.3p1
cd openssh-8.3p1 && install -v -m644 INSTALL LICENCE OVERVIEW README* /usr/share/doc/openssh-8.3p1
# $(MAKE) -C openssh-8.6p1 tests
$(MAKE) -C openssh-8.6p1 install
cd openssh-8.6p1 && install -v -m755 contrib/ssh-copy-id /usr/bin
cd openssh-8.6p1 && install -v -m644 contrib/ssh-copy-id.1 /usr/share/man/man1
install -v -m755 -d /usr/share/doc/openssh-8.6p1
cd openssh-8.6p1 && install -v -m644 INSTALL LICENCE OVERVIEW README* /usr/share/doc/openssh-8.6p1
rm /etc/ssh/*_key /etc/ssh/*_key.pub
@echo "$$SSHD_SERVICE" > /lib/systemd/system/sshd.service
ln -s /lib/systemd/system/sshd.service /etc/systemd/system/multi-user.target.wants/sshd.service
sed -i 's/#PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config
rm -rf openssh-8.3p1
rm -rf openssh-8.6p1
sshd-service:
define SSHD_SERVICE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment