[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#326800: marked as done (ssh: scp password prompt does not cleanup terminal on Ctrl-C)



Your message dated Mon, 5 Sep 2005 22:56:29 +0100
with message-id <20050905215629.GK11774@riva.ucam.org>
and subject line Bug#326800: ssh: scp password prompt does not cleanup terminal on Ctrl-C
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Sep 2005 19:48:17 +0000
>From ssb22@cam.ac.uk Mon Sep 05 12:48:17 2005
Return-path: <ssb22@cam.ac.uk>
Received: from ppsw-0.csi.cam.ac.uk [131.111.8.130] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1ECMwy-0002iG-00; Mon, 05 Sep 2005 12:48:17 -0700
X-Cam-SpamDetails: Not scanned
X-Cam-AntiVirus: No virus found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from elgar.cl.cam.ac.uk ([128.232.9.127]:33365)
	by ppsw-0.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.130]:25)
	with esmtp id 1ECMww-0002bf-0d (Exim 4.51) for submit@bugs.debian.org
	(return-path <ssb22@cam.ac.uk>); Mon, 05 Sep 2005 20:48:14 +0100
Received: by elgar.cl.cam.ac.uk (Postfix, from userid 1000)
	id B5F916D656; Mon,  5 Sep 2005 19:02:26 +0100 (BST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: "Silas S. Brown" <ssb22@cam.ac.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ssh: scp password prompt does not cleanup terminal on Ctrl-C
X-Mailer: reportbug 3.8
Date: Mon, 05 Sep 2005 19:02:26 +0100
X-Debbugs-Cc: ssb22@cam.ac.uk
Message-Id: <[🔎] 20050905180226.B5F916D656@elgar.cl.cam.ac.uk>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-9.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,
	HAS_PACKAGE,X_DEBBUGS_CC autolearn=ham 
	version=2.60-bugs.debian.org_2005_01_02

Package: ssh
Version: 1:3.8.1p1-8.sarge.4
Severity: normal


If you press Control-C at scp's "Password" prompt, you get
dropped back to the shell prompt but subsequent commands are
not echoed as you type them (only the prompt and the output
is visible).  For example, here I pressed Control-C at the
prompt, then pressed Enter a few times and then typed "ls":

ssb22:~$ scp /tmp/resume2.ps beethoven:
ssb22@beethoven's password: 
ssb22:~$ 
ssb22:~$ ssb22:~$ ssb22:~$ #%=2Ascratch=2A#       greetings.lyx     #newfile3.lyx#   resume.tex.m4~
5jul                   handout.pdf       ...

This bug only happens with scp, not with ssh.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.23
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) (ignored: LC_ALL set to en_GB)

Versions of packages ssh depends on:
ii  adduser                3.63              Add and remove users and groups
ii  debconf                1.4.30.13         Debian configuration management sy
ii  dpkg                   1.10.28           Package maintenance system for Deb
ii  libc6                  2.3.2.ds1-22      GNU C Library: Shared libraries an
ii  libpam-modules         0.76-22           Pluggable Authentication Modules f
ii  libpam-runtime         0.76-22           Runtime support for the PAM librar
ii  libpam0g               0.76-22           Pluggable Authentication Modules l
ii  libssl0.9.7            0.9.7e-3          SSL shared libraries
ii  libwrap0               7.6.dbs-8         Wietse Venema's TCP wrappers libra
ii  zlib1g                 1:1.2.2-4.sarge.2 compression library - runtime

-- debconf information:
* ssh/privsep_tell:
  ssh/insecure_rshd:
  ssh/privsep_ask: true
  ssh/ssh2_keys_merged:
* ssh/user_environment_tell:
* ssh/forward_warning:
  ssh/insecure_telnetd:
  ssh/new_config: true
* ssh/use_old_init_script: true
  ssh/protocol2_only: true
  ssh/encrypted_host_key_but_no_keygen:
* ssh/run_sshd: true
* ssh/SUID_client: true
  ssh/disable_cr_auth: false

---------------------------------------
Received: (at 326800-done) by bugs.debian.org; 5 Sep 2005 21:56:33 +0000
>From cjwatson@flatline.org.uk Mon Sep 05 14:56:33 2005
Return-path: <cjwatson@flatline.org.uk>
Received: from mail.metronet.co.uk [213.162.97.75] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1ECOx7-0007vH-00; Mon, 05 Sep 2005 14:56:33 -0700
Received: from riva.pelham.vpn.ucam.org (83-216-156-196.colinw664.adsl.metronet.co.uk [83.216.156.196])
	by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 974FB415C05
	for <326800-done@bugs.debian.org>; Mon,  5 Sep 2005 22:56:12 +0100 (BST)
Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian))
	for 326800-done@bugs.debian.org
	id 1ECOx3-0006sa-00; Mon, 05 Sep 2005 22:56:29 +0100
Date: Mon, 5 Sep 2005 22:56:29 +0100
From: Colin Watson <cjwatson@debian.org>
To: 326800-done@bugs.debian.org
Subject: Re: Bug#326800: ssh: scp password prompt does not cleanup terminal on Ctrl-C
Message-ID: <20050905215629.GK11774@riva.ucam.org>
References: <[🔎] 20050905180226.B5F916D656@elgar.cl.cam.ac.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] 20050905180226.B5F916D656@elgar.cl.cam.ac.uk>
User-Agent: Mutt/1.5.9i
Delivered-To: 326800-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: ssh
Source-Version: 1:4.0p1-1

On Mon, Sep 05, 2005 at 07:02:26PM +0100, Silas S. Brown wrote:
> Package: ssh
> Version: 1:3.8.1p1-8.sarge.4
> Severity: normal
> 
> If you press Control-C at scp's "Password" prompt, you get
> dropped back to the shell prompt but subsequent commands are
> not echoed as you type them (only the prompt and the output
> is visible).  For example, here I pressed Control-C at the
> prompt, then pressed Enter a few times and then typed "ls":
> 
> ssb22:~$ scp /tmp/resume2.ps beethoven:
> ssb22@beethoven's password: 
> ssb22:~$ 
> ssb22:~$ ssb22:~$ ssb22:~$ #%=2Ascratch=2A#       greetings.lyx     #newfile3.lyx#   resume.tex.m4~
> 5jul                   handout.pdf       ...
> 
> This bug only happens with scp, not with ssh.

This was fixed in OpenSSH 4.0p1.

openssh (1:4.0p1-1) experimental; urgency=low

  * New upstream release.
    [...]
    - Have scp and sftp wait for the spawned ssh to exit before they exit
      themselves, allowing ssh to restore terminal modes (closes: #257130).
  [...]

 -- Colin Watson <cjwatson@debian.org>  Thu, 26 May 2005 11:23:18 +0100

It probably won't get fixed in stable, but since I'm including the
version in this -done mail, the BTS will know that it's still open
there.

Cheers,

-- 
Colin Watson                                       [cjwatson@debian.org]



Reply to: