From owner-freebsd-questions@freebsd.org Wed Feb 15 21:07:20 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AFC03CE0AAC for ; Wed, 15 Feb 2017 21:07:20 +0000 (UTC) (envelope-from erwan@rail.eu.org) Received: from voyageurs.rail.eu.org (voyageurs.rail.eu.org [IPv6:2001:bc8:30d3::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7CF5E1693 for ; Wed, 15 Feb 2017 21:07:20 +0000 (UTC) (envelope-from erwan@rail.eu.org) Received: from [IPv6:2001:bc8:30d3:3040:6267:20ff:fede:1808] (unknown [IPv6:2001:bc8:30d3:3040:6267:20ff:fede:1808]) by voyageurs.rail.eu.org (Postfix) with ESMTPSA id D49032CC07A0 for ; Wed, 15 Feb 2017 22:07:17 +0100 (CET) Subject: Re: FTP access blocked on specific user To: freebsd-questions@freebsd.org References: <9de65374-2203-0164-d49f-1118d4e58a25@cloudzeeland.nl> From: Erwan David Message-ID: <607d7aa7-985e-4441-6ec7-e119e14ccefa@rail.eu.org> Date: Wed, 15 Feb 2017 22:07:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <9de65374-2203-0164-d49f-1118d4e58a25@cloudzeeland.nl> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rail.eu.org; s=mail; t=1487192837; bh=0+BafpoO2Olxbrpyd1pch346mZ0YJ2/fRVRc5VDSl2k=; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=NpNcGgdJvt7teTdETFlq8eEmIMMQ+UzC3Ns6L39P8RFkQM8i1sT0I1GtN8kbboc7w1ATyY2PtZM3eTBcTJ3uw1UgvtNx0vKOVzKFru/bh4MDCJPDhrXwF4zJc/Rtzgck86a17VQK9xwxDLhltmvQ5hPx0Rbnuc7akwy+Md/M8Us= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2017 21:07:20 -0000 Le 02/15/2017 à 22:00, Jos Chrispijn a écrit : > I have a sudden issue connecting with a certain username on sftp and > predefined port. > > Any other user gets immidiately access on the same ip and portnumber, > but on this specific user things get stuck: > Get a timeout and session is terminated. Only ftp:21 works. > > First I thought it was domainname / dns related so I tried to get sftp > access on internal network / ip number levelinstead of domain name. > Unfortunately that doesn't provide access result. > > Could it be that I should flush a certain session file in order to > remove any information that blocks sftp access? > > Perhaps this 'blocked user' has a damages user directory (folder) that > causes the timeout? > > Also checked ipfw icw SSHGuard (table22) but after flushing no > improvement yet. > > Can someone tell me what I may oversee here? Thanks! > Check that this user's shell does not send multi-line message or prompt with control characters in a non interactive session. This would break sftp.