Commit ac06ca0c authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all: sshd-service
tar xf openssh-7.5p1.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
patch -Np1 -d openssh-7.5p1 < openssh-7.5p1-openssl-1.1.0-1.patch
cd openssh-7.5p1 && ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords --with-privsep-path=/var/lib/sshd
$(MAKE) -C openssh-7.5p1
# FIXME: openssh tests failure!
# $(MAKE) -C openssh-7.5p1 tests
$(MAKE) -C openssh-7.5p1 install
cd openssh-7.5p1 && 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
install -v -m755 -d /usr/share/doc/openssh-7.5p1
cd openssh-7.5p1 && install -v -m644 INSTALL LICENCE OVERVIEW README* /usr/share/doc/openssh-7.5p1
@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/#PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
sed -i 's/#PermitEmptyPasswords.*/PermitEmptyPasswords yes/' /etc/ssh/sshd_config
rm -rf openssh-7.5p1
sshd-service:
define SSHD_SERVICE
[Unit]
Description=OpenSSH Daemon
[Service]
ExecStart=/usr/sbin/sshd -D
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target
endef
export SSHD_SERVICE
This diff is collapsed.
etc
/etc/.*
bin
/lib/systemd/system/.*
/usr/sbin/.*
/usr/libexec/.*
/usr/bin/.*
doc
/usr/share/doc/.*
/usr/share/man/.*
mail
/var/mail/.*
log
/var/log/.*
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