From nobody@FreeBSD.org  Fri Feb  9 08:29:37 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id B187337BBBC
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 Feb 2001 07:36:39 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f19FadY68213;
	Fri, 9 Feb 2001 07:36:39 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200102091536.f19FadY68213@freefall.freebsd.org>
Date: Fri, 9 Feb 2001 07:36:39 -0800 (PST)
From: kway@wgate.com
To: freebsd-gnats-submit@FreeBSD.org
Subject: sshd: connections using '-t' always run a shell, not what was specified.
X-Send-Pr-Version: www-1.0

>Number:         24968
>Category:       misc
>Synopsis:       sshd: connections using '-t' always run a shell, not what was specified.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 09 08:30:01 PST 2001
>Closed-Date:    Mon Feb 12 06:20:42 PST 2001
>Last-Modified:  Mon Feb 12 06:20:57 PST 2001
>Originator:     Kevin Way
>Release:        FreeBSD 4.2-STABLE : Fri Jan 12
>Organization:
>Environment:
FreeBSD way.eng.tvol.net 4.2-STABLE FreeBSD 4.2-STABLE #0: Fri Jan 12 15:15:31 EST 2001    root@way.eng.tvol.net:/usr/obj/usr/src/sys/KEVIN  i386
>Description:
sshd fails to run the specified command if the client specifies the -t option. instead it ALWAYS runs an interactive shell.  This behaviour differs from the previous version of OpenSSH.
>How-To-Repeat:
ssh machine uname -a, and you'll get results
ssh -t machine uname -a, and you'll get a login shell
>Fix:


>Release-Note:
>Audit-Trail:

From: Peter Pentchev <roam@orbitel.bg>
To: kway@wgate.com
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/24968: sshd: connections using '-t' always run a shell, not what was specified.
Date: Fri, 9 Feb 2001 22:32:56 +0200

 On Fri, Feb 09, 2001 at 07:36:39AM -0800, kway@wgate.com wrote:
 > 
 > >Number:         24968
 > >Category:       misc
 > >Synopsis:       sshd: connections using '-t' always run a shell, not what was specified.
 > >Originator:     Kevin Way
 > >Release:        FreeBSD 4.2-STABLE : Fri Jan 12
 > >Organization:
 > >Environment:
 > FreeBSD way.eng.tvol.net 4.2-STABLE FreeBSD 4.2-STABLE #0: Fri Jan 12 15:15:31 EST 2001    root@way.eng.tvol.net:/usr/obj/usr/src/sys/KEVIN  i386
 > >Description:
 > sshd fails to run the specified command if the client specifies the -t option. instead it ALWAYS runs an interactive shell.  This behaviour differs from the previous version of OpenSSH.
 > >How-To-Repeat:
 > ssh machine uname -a, and you'll get results
 > ssh -t machine uname -a, and you'll get a login shell
 
 Hmm.
 Doesn't seem that way to me:
 
 [roam@ringworld:v2 ~]$ ssh -t localhost uname -a
 roam@localhost's password:
 FreeBSD ringworld.oblivion.bg 4.2-STABLE FreeBSD 4.2-STABLE #10: Fri Feb  9 12:08:48 EET 2001     root@ringworld.oblivion.bg:/usr/obj/usr/src/sys/RINGWORLD  i386
 Connection to localhost closed.
 [roam@ringworld:v2 ~]$
 
 Hmm.. when did OpenSSH-2.3.0 hit -stable?  This correct behavior with mine
 just might be because of something that is different in 2.3.0.
 
 G'luck,
 Peter
 
 -- 
 What would this sentence be like if it weren't self-referential?
 

From: Dima Dorfman <dima@unixfreak.org>
To: Peter Pentchev <roam@orbitel.bg>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/24968: sshd: connections using '-t' always run a shell, not what was specified. 
Date: Fri, 09 Feb 2001 21:26:49 -0800

 >  > >How-To-Repeat:
 >  > ssh machine uname -a, and you'll get results
 >  > ssh -t machine uname -a, and you'll get a login shell
 >  
 >  Hmm.
 >  Doesn't seem that way to me:
 >  
 >  [snip successful use of ssh -t]
 >
 >  Hmm.. when did OpenSSH-2.3.0 hit -stable?  This correct behavior with mine
 >  just might be because of something that is different in 2.3.0.
 
 This was a bug in OpenSSH 2.3.0 as a result of some FreeBSD
 modifications.  It was fixed in -current on the 21st of January in
 src/crypto/openssh/session.c:
 
 ----------------------------
 revision 1.13
 date: 2001/01/21 05:45:27;  author: green;  state: Exp;  lines: +2 -2
 Actually propagate back to the rest of the application that a command
 was specified when using -t mode with the SSH client.
 
 Submitted by:   Dima Dorfman <dima@unixfreak.org>
 ----------------------------
 
 It was merged to RELENG_4 on the 4th (see rev. 1.4.2.7).
 
 					Dima Dorfman
 					dima@unixfreak.org
 
State-Changed-From-To: open->feedback 
State-Changed-By: roam 
State-Changed-When: Sat Feb 10 00:07:25 PST 2001 
State-Changed-Why:  
Can you try updating your -STABLE sources, and see if this works for you, 
as Dima Dorfman explained it should with sources after Feb 4th? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24968 
State-Changed-From-To: feedback->closed 
State-Changed-By: roam 
State-Changed-When: Mon Feb 12 06:20:42 PST 2001 
State-Changed-Why:  
Closed at originator's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24968 
>Unformatted:
