Commit 5f173874 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Updated openssh to 8.3p1

parent ebac2642
all: sshd-service all: sshd-service
tar xf openssh-8.0p1.tar.gz tar xf openssh-8.3p1.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
cd openssh-8.0p1 && ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords --with-privsep-path=/var/lib/sshd cd openssh-8.3p1 && ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords --with-privsep-path=/var/lib/sshd
$(MAKE) -C openssh-8.0p1 $(MAKE) -C openssh-8.3p1
# FIXME: openssh tests failure! # FIXME: openssh tests failure!
# $(MAKE) -C openssh-8.0p1 tests # $(MAKE) -C openssh-8.3p1 tests
$(MAKE) -C openssh-8.0p1 install $(MAKE) -C openssh-8.3p1 install
cd openssh-8.0p1 && install -v -m755 contrib/ssh-copy-id /usr/bin cd openssh-8.3p1 && install -v -m755 contrib/ssh-copy-id /usr/bin
cd openssh-8.0p1 && install -v -m644 contrib/ssh-copy-id.1 /usr/share/man/man1 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.0p1 install -v -m755 -d /usr/share/doc/openssh-8.3p1
cd openssh-8.0p1 && install -v -m644 INSTALL LICENCE OVERVIEW README* /usr/share/doc/openssh-8.0p1 cd openssh-8.3p1 && install -v -m644 INSTALL LICENCE OVERVIEW README* /usr/share/doc/openssh-8.3p1
@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-8.0p1 rm -rf openssh-8.3p1
sshd-service: sshd-service:
define 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