From c98545b204689b51a8531d1f43193bfdd9c931e0 Mon Sep 17 00:00:00 2001 From: tripolar Date: Tue, 22 Oct 2013 13:09:28 +0000 Subject: [PATCH] [packages] openssh-server-pam: set options correctly in sshd_config when openssh-server-pam is used Signed-off-by: Peter Wagner git-svn-id: svn://svn.openwrt.org/openwrt/packages@38495 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/openssh/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/openssh/Makefile b/net/openssh/Makefile index 4b8a10e5d..cbc6db4c1 100644 --- a/net/openssh/Makefile +++ b/net/openssh/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=openssh PKG_VERSION:=6.3p1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \ @@ -220,6 +220,8 @@ define Package/openssh-server-pam/install $(INSTALL_DIR) $(1)/etc/ssh chmod 0700 $(1)/etc/ssh $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/ssh/sshd_config $(1)/etc/ssh/ + sed -i 's,#PasswordAuthentication yes,PasswordAuthentication no,g' $(1)/etc/ssh/sshd_config + sed -i 's,#UsePAM no,UsePAM yes,g' $(1)/etc/ssh/sshd_config $(INSTALL_DIR) $(1)/etc/pam.d $(INSTALL_DATA) ./files/sshd.pam $(1)/etc/pam.d/sshd $(INSTALL_DIR) $(1)/etc/security -- 2.11.0