Commit ebac2642 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Update openssh to 8.0p1

parent ac06ca0c
all: sshd-service all: sshd-service
tar xf openssh-7.5p1.tar.gz tar xf openssh-8.0p1.tar.gz
install -v -m700 -d /var/lib/sshd install -v -m700 -d /var/lib/sshd
chown -v root:sys /var/lib/sshd chown -v root:sys /var/lib/sshd
groupadd -g 50 sshd groupadd -g 50 sshd
useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd -s /bin/false -u 50 sshd useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd -s /bin/false -u 50 sshd
patch -Np1 -d openssh-7.5p1 < openssh-7.5p1-openssl-1.1.0-1.patch cd openssh-8.0p1 && ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords --with-privsep-path=/var/lib/sshd
cd openssh-7.5p1 && ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords --with-privsep-path=/var/lib/sshd $(MAKE) -C openssh-8.0p1
$(MAKE) -C openssh-7.5p1
# FIXME: openssh tests failure! # FIXME: openssh tests failure!
# $(MAKE) -C openssh-7.5p1 tests # $(MAKE) -C openssh-8.0p1 tests
$(MAKE) -C openssh-7.5p1 install $(MAKE) -C openssh-8.0p1 install
cd openssh-7.5p1 && install -v -m755 contrib/ssh-copy-id /usr/bin cd openssh-8.0p1 && install -v -m755 contrib/ssh-copy-id /usr/bin
cd openssh-7.5p1 && install -v -m644 contrib/ssh-copy-id.1 /usr/share/man/man1 cd openssh-8.0p1 && install -v -m644 contrib/ssh-copy-id.1 /usr/share/man/man1
install -v -m755 -d /usr/share/doc/openssh-7.5p1 install -v -m755 -d /usr/share/doc/openssh-8.0p1
cd openssh-7.5p1 && install -v -m644 INSTALL LICENCE OVERVIEW README* /usr/share/doc/openssh-7.5p1 cd openssh-8.0p1 && install -v -m644 INSTALL LICENCE OVERVIEW README* /usr/share/doc/openssh-8.0p1
@echo "$$SSHD_SERVICE" > /lib/systemd/system/sshd.service @echo "$$SSHD_SERVICE" > /lib/systemd/system/sshd.service
ln -s /lib/systemd/system/sshd.service /etc/systemd/system/multi-user.target.wants/sshd.service ln -s /lib/systemd/system/sshd.service /etc/systemd/system/multi-user.target.wants/sshd.service
sed -i 's/#PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config sed -i 's/#PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
sed -i 's/#PermitEmptyPasswords.*/PermitEmptyPasswords yes/' /etc/ssh/sshd_config sed -i 's/#PermitEmptyPasswords.*/PermitEmptyPasswords yes/' /etc/ssh/sshd_config
rm -rf openssh-7.5p1 rm -rf openssh-8.0p1
sshd-service: sshd-service:
define SSHD_SERVICE define SSHD_SERVICE
......
This diff is collapsed.
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