X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.4 required=5.0 tests=BAYES_40,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KAM_STOCKGEN,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <4C8FB7B6.1030300@gmail.com> Date: Wed, 15 Sep 2010 01:58:14 +0800 From: Chan Kar Heng User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: ssh from linux to cygwin + CUI + Ctrl-C References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi there. I've had the same problem in the past. Posted a temporary solution here: http://www.cygwin.com/ml/cygwin/2009-02/msg00403.html Best regards, KarHeng Ilia K. wrote: > Hi, All. > I've searched quite a lot for the subj and found no solution yet. > I've installed the last cygwin+openssh on Windows XP. I want to > connect from linux and run some native console applications > (non-cygwin CUI, particularly, cdb and cmd) and I need these > applications to correctly handle Ctrt-C. > If such CUI application is started from local cygwin bash window it > handles Ctrl-C properly, but if it's started over ssh Ctrl-C > terminates application and the control returns to bash (the one which > runs on the server, ssh session doesn't terminate). > > I would appreciate a solution besides using another remote access > program (freessh, VNC, RDP, etc.). > > Below is my current bash environment when run from sshd (note, CYGWIN > is unset and TERM=xterm). > > HOMEPATH=\cygwin\home\user > MANPATH=/usr/local/man:/usr/share/man:/usr/man: > _NT_DEBUG_LOG_FILE_APPEND=C:\cygwin\home\user\ntdebug.log > HOSTNAME=winxp-vbox > _NT_SYMBOL_PATH=srv*C:\cygwin\home\user\symbols*http://msdl.microsoft.com/download/symbols;cache*C:\cygwin\home\user\symbols > TERM=xterm > SHELL=/bin/bash > WINDIR=C:\WINDOWS > SSH_CLIENT=192.168.56.1 57891 22 > MYDIR=/home/user > OLDPWD=/home/user > USERDOMAIN=NT AUTHORITY > SSH_TTY=/dev/tty0 > OS=Windows_NT > ALLUSERSPROFILE=C:\Documents and Settings\All Users > USER=user > USERNAME=SYSTEM > MAIL=/var/spool/mail/user > PATH=/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/bin:/cygdrive/c/Program > Files/Bazaar/:/cygdrive/c/Program Files/Debugging Tools for Windows > (x86)/ > PWD=/home/user > SYSTEMDRIVE=C: > LANG=C.UTF-8 > USERPROFILE=C:\Documents and Settings\user > PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ > HISTIGNORE=[ ]*:&:[fb]g:exit:ls > HISTCONTROL=ignoreboth > SHLVL=1 > HOME=/home/user > PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > HOMEDRIVE=C: > COMSPEC=C:\WINDOWS\system32\cmd.exe > LOGNAME=user > SYSTEMROOT=C:\WINDOWS > PRINTER= > CVS_RSH=/bin/ssh > SSH_CONNECTION=192.168.56.1 57891 192.168.56.101 22 > INFOPATH=/usr/local/info:/usr/share/info:/usr/info: > COMPUTERNAME=WINXP-VBOX > > > Thanks, > Ilia. > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple