From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 12 19:00:12 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A87E106566B for ; Mon, 12 Apr 2010 19:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 88F008FC21 for ; Mon, 12 Apr 2010 19:00:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3CJ0BvQ059170 for ; Mon, 12 Apr 2010 19:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3CJ0Bn2059169; Mon, 12 Apr 2010 19:00:11 GMT (envelope-from gnats) Resent-Date: Mon, 12 Apr 2010 19:00:11 GMT Resent-Message-Id: <201004121900.o3CJ0Bn2059169@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eric F Crist Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5F771065687 for ; Mon, 12 Apr 2010 18:59:07 +0000 (UTC) (envelope-from root@jaguar-2.claimlynx.com) Received: from jaguar-2.claimlynx.com (jaguar-2.claimlynx.com [216.17.68.153]) by mx1.freebsd.org (Postfix) with ESMTP id A495E8FC23 for ; Mon, 12 Apr 2010 18:59:07 +0000 (UTC) Received: by jaguar-2.claimlynx.com (Postfix, from userid 0) id A7B8511F836; Mon, 12 Apr 2010 13:39:01 -0500 (CDT) Message-Id: <20100412183901.A7B8511F836@jaguar-2.claimlynx.com> Date: Mon, 12 Apr 2010 13:39:01 -0500 (CDT) From: Eric F Crist To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/145660: base openssh gives an unusable terminal when using ssh to connect to a host configured for sftp only X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eric F Crist List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 19:00:12 -0000 >Number: 145660 >Category: bin >Synopsis: base openssh gives an unusable terminal when using ssh to connect to a host configured for sftp only >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 12 19:00:10 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Eric F Crist >Release: FreeBSD 8.0-STABLE amd64 >Organization: Secure Computing Networks ClaimLynx, Inc >Environment: System: FreeBSD jaguar-2.claimlynx.com 8.0-STABLE FreeBSD 8.0-STABLE #3: Fri Apr 9 11:01:00 CDT 2010 root@jaguar-2.claimlynx.com:/usr/obj/usr/src/sys/GENERIC-CARP amd64 >Description: The the following sshd_config in place, connecting as user 'testing' to the box gives a blank/empty terminal. Attempting to run any commands yields an error and the session is dropped. In HEAD, this same scenario is handled with a message indicating the current system only allows sftp connections. >How-To-Repeat: Protocol 2 Subsystem sftp internal-sftp Match User testing ForceCommand internal-sftp X11Forwarding no AllowTcpForwarding no Use the above sshd_config and attempt to log in as user 'testing' via SSH, connecting as SFTP should work. >Fix: This problem does not appear in HEAD. >Release-Note: >Audit-Trail: >Unformatted: