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\...@\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