Upgraded to latest cygwin this morning, and ssh refuses to enter binmode. Help! (fwd)
Ben Lindstrom
mouring at etoh.eviladmin.org
Fri Oct 18 08:47:35 EST 2002
Could someone running Cygwin or involved in Cygwin help this person
please?
- Ben
---------- Forwarded message ----------
Date: Thu, 17 Oct 2002 17:58:45 -0400
From: Andrew Greene <agreene at pageflexinc.com>
To: openssh at openssh.com
Subject: Upgraded to latest cygwin this morning,
and ssh refuses to enter binmode. Help!
I upgraded to the latest cygwin this morning (not sure when I last
did) and ssh is suddenly replacing LF with CRLF. (I also started
running sshd as a service; I don't know if that's relevant.)
This replacement prevents Unison from working, along with who knows
what else (I'm afraid to try CVS!)
I tried explicitly setting CYGWIN to binmode but that doesn't seem to
help.
Thanks in advance for your help and explanation!
======================================================================
Version info:
OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090607f
======================================================================
Here is an example. On my Unix box I ran "unison -version >/tmp/univer".
If I use ssh to cat the file remotely, you can see that it looks
reasonable at first blush:
c:\amg>ssh -i /home/agreene/.ssh/a-identity -1 -l a zamir.dns2go.com cat /tmp/univer
unison version 2.9.1
======================================================================
But notice this subtle difference: if I od the file on the Unix box, the
line ending is a LF; if I od the file on my Cygwin box, the line ending
is CRLF.
c:\amg>ssh -i /home/agreene/.ssh/a-identity -1 -l a zamir.dns2go.com od -tx1 /tmp/univer
0000000 75 6e 69 73 6f 6e 20 76 65 72 73 69 6f 6e 20 32
0000020 2e 39 2e 31 0a
0000025
c:\amg>ssh -i /home/agreene/.ssh/a-identity -1 -l a zamir.dns2go.com cat /tmp/univer | od -tx1
0000000 75 6e 69 73 6f 6e 20 76 65 72 73 69 6f 6e 20 32
0000020 2e 39 2e 31 0d 0a
0000026
======================================================================
Here's what cygcheck tells me.
c:\amg>cygcheck -s
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Thu Oct 17 17:51:43 2002
Windows 2000 Server Ver 5.0 Build 2195 Service Pack 2
Path: C:\PROGRAMS\PERL\BIN\
c:\winnt\SYSTEM32
c:\winnt
c:\winnt\SYSTEM32\WBEM
c:\junkyard
C:\Programs\Rational\common
c:\cygwin\bin
c:\x\appkit\win\lib\debug
c:\bin
C:\Programs\Microsoft\Visual Studio\Common\Tools\WinNT
C:\Programs\Microsoft\Visual Studio\Common\MSDev98\Bin
C:\Programs\Microsoft\Visual Studio\Common\Tools
C:\Programs\Microsoft\Visual Studio\VC98\bin
M:\eng\NuDoc\jdk1.1.8\bin
C:\ATF
SysDir: c:\winnt\System32
WinDir: c:\winnt
CYGWIN = `binmode'
GCC_EXEC_PREFIX = `C:\Programs\TSHG\GNUPAL~1\lib\gcc-lib\'
HOME = `c:\amg'
Path = `C:\PROGRAMS\PERL\BIN\;c:\winnt\SYSTEM32;c:\winnt;c:\winnt\SYSTEM32\WBEM;
c:\junkyard;C:\Programs\Rational\common;c:\cygwin\bin;c:\x\appkit\win\lib\debug;
c:\bin;C:\Programs\Microsoft\Visual Studio\Common\Tools\WinNT;C:\Programs\Micros
oft\Visual Studio\Common\MSDev98\Bin;C:\Programs\Microsoft\Visual Studio\Common\
Tools;C:\Programs\Microsoft\Visual Studio\VC98\bin;M:\eng\NuDoc\jdk1.1.8\bin;;C:
\ATF'
Use `-r' to scan registry
a: fd N/A N/A
c: hd NTFS 28623Mb 84% CP CS UN PA FC
d: cd N/A N/A
e: fd N/A N/A
m: net NTFS 69957Mb 89% CP CS UN PA FC raid5
n: net NTFS 43974Mb 11% CP CS UN PA FC
q: net NTFS 71168Mb 79% CP CS UN PA FC
cygcheck: dump_sysinfo: GetVolumeInformation() failed: 67
r: net N/A N/A
cygcheck: dump_sysinfo: GetVolumeInformation() failed: 67
s: net N/A N/A
C:\PalmDev /PalmDev user textmode
c:\usr /usr user textmode
. /cygdrive user binmode,cygdrive
c:/cygwin / system binmode
c:\amg /home/agreene system binmode
c:/cygwin/bin /usr/bin system binmode
c:/cygwin/lib /usr/lib system binmode
. /cygdrive user binmode,cygdrive
Found: c:\cygwin\bin\bash.exe
Found: c:\cygwin\bin\cat.exe
Found: c:\cygwin\bin\cpp.exe
Found: c:\cygwin\bin\find.exe
Found: c:\cygwin\bin\gcc.exe
Found: c:\cygwin\bin\gdb.exe
Found: c:\cygwin\bin\ld.exe
Found: c:\cygwin\bin\ls.exe
Found: c:\cygwin\bin\make.exe
Found: c:\cygwin\bin\sh.exe
58k 2002/05/07 c:\cygwin\bin\cygbz2-1.dll
54k 2002/01/27 c:\cygwin\bin\cygbz21.0.dll
625k 2002/08/09 c:\cygwin\bin\cygcrypto.dll
35k 2002/01/09 c:\cygwin\bin\cygform6.dll
19k 2002/02/20 c:\cygwin\bin\cyggdbm.dll
17k 2001/06/28 c:\cygwin\bin\cyghistory4.dll
20k 2002/10/10 c:\cygwin\bin\cyghistory5.dll
929k 2002/06/24 c:\cygwin\bin\cygiconv-2.dll
22k 2001/12/13 c:\cygwin\bin\cygintl-1.dll
28k 2002/09/20 c:\cygwin\bin\cygintl-2.dll
21k 2001/06/20 c:\cygwin\bin\cygintl.dll
81k 2001/10/20 c:\cygwin\bin\cygitcl30.dll
35k 2001/10/20 c:\cygwin\bin\cygitk30.dll
45k 2002/02/08 c:\cygwin\bin\cygjbig1.dll
119k 2002/02/09 c:\cygwin\bin\cygjpeg6b.dll
59k 2002/09/20 c:\cygwin\bin\cygkpathsea-3-3-7.dll
20k 2002/01/09 c:\cygwin\bin\cygmenu6.dll
175k 2002/01/09 c:\cygwin\bin\cygncurses++6.dll
202k 2002/01/09 c:\cygwin\bin\cygncurses6.dll
12k 2002/01/09 c:\cygwin\bin\cygpanel6.dll
40k 2001/11/21 c:\cygwin\bin\cygpcre.dll
39k 2001/11/21 c:\cygwin\bin\cygpcreposix.dll
179k 2002/07/22 c:\cygwin\bin\cygpng12.dll
170k 2002/01/21 c:\cygwin\bin\cygpng2.dll
22k 2002/06/09 c:\cygwin\bin\cygpopt-0.dll
108k 2001/06/28 c:\cygwin\bin\cygreadline4.dll
127k 2002/10/10 c:\cygwin\bin\cygreadline5.dll
66k 2001/11/20 c:\cygwin\bin\cygregex.dll
159k 2002/08/09 c:\cygwin\bin\cygssl.dll
390k 2001/10/20 c:\cygwin\bin\cygtcl80.dll
5k 2001/10/20 c:\cygwin\bin\cygtclpip80.dll
10k 2001/10/20 c:\cygwin\bin\cygtclreg80.dll
253k 2002/02/10 c:\cygwin\bin\cygtiff3.dll
623k 2001/10/20 c:\cygwin\bin\cygtk80.dll
714k 2001/11/05 c:\cygwin\bin\cygwin1z.dll
633k 2002/07/22 c:\cygwin\bin\cygxml2-2.dll
41k 2002/01/20 c:\cygwin\bin\cygXpm-noX4.dll
46k 2002/01/20 c:\cygwin\bin\cygXpm-X4.dll
50k 2002/03/12 c:\cygwin\bin\cygz.dll
904k 2002/10/14 c:\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.3.13
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 62
Shared data: 3
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:
Build date: Sun Oct 13 23:15:34 EDT 2002
CVS tag: cygwin-1-3-13-1
Shared id: cygwin1S3
2975k 1996/12/11 c:\bin\CYGWIN-old.DLL
446k 1998/12/04 c:\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 2.0.1
DLL epoch: 19
DLL bad signal mask: 19005
API major: 0
API minor: 3
Shared data: 1
DLL identifier: cygwin
Mount registry: 1
Cygnus registry name: Cygnus Solutions
Cygwin registry name: CYGWIN.DLL setup
Program options name: Program Options
Cygwin mount registry name: b15.0
Build date: Thu Dec 3 20:39:18 PST 1998
CVS taggnu-win32-b20-branch:
Shared id: cygwinS1
2975k 1996/12/11 \bin\CYGWIN-old.DLL
446k 1998/12/04 \bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 2.0.1
DLL epoch: 19
DLL bad signal mask: 19005
API major: 0
API minor: 3
Shared data: 1
DLL identifier: cygwin
Mount registry: 1
Cygnus registry name: Cygnus Solutions
Cygwin registry name: CYGWIN.DLL setup
Program options name: Program Options
Cygwin mount registry name: b15.0
Build date: Thu Dec 3 20:39:18 PST 1998
CVS taggnu-win32-b20-branch:
Shared id: cygwinS1
Cygwin Package Information
Package Version
_update-info-dir 00073-1
ash 20020731-1
autoconf 2.53b-1
autoconf-devel 2.53a-1
autoconf-stable 2.13-4
automake 1.6.2-1
automake-devel 1.6.2-1
automake-stable 1.4p5-5
base-files 1.0-1
base-passwd 1.0-1
bash 2.05b-5
binutils 20020706-2
bison 1.35-1
byacc 1.9-1
bzip2 1.0.2-2
clear 1.0-1
cpio 2.4.2
cron 3.0.1-7
crypt 1.0-1
ctags 5.2-1
cvs 1.11.0-1
cygrunsrv 0.95-1
cygutils 1.1.2-1
cygwin 1.3.13-2
cygwin-doc 1.1-2
dejagnu 20010117-1
diff 1.0-1
diffutils 2.8.1-1
ed 0.2-1
expect 20010117-1
file 3.37-1
fileutils 4.1-1
findutils 4.1.7-4
flex 2.5.4-2
gawk 3.1.1-4
gcc 3.2-1
gcc-mingw 3.2-20020817-1
gdb 20010428-3
gdbm 1.8.0-4
gettext 0.11.5-1
ghostscript 7.05-1
ghostscript-base 7.05-1
gperf 0.0
grep 2.5-1
groff 1.17.2-1
gzip 1.3.3-4
inetutils 1.3.2-19
irc 20010101-1
jbigkit 1.2-6
jpeg 6b-7
less 374-1
libbz2_0 1.0.2-1
libbz2_1 1.0.2-2
libiconv2 1.8-2
libintl 0.10.38-3
libintl1 0.10.40-1
libintl2 0.11.5-1
libkpathsea3 20020911-1
libncurses5 5.2-1
libncurses6 5.2-8
libpng 1.2.4-2
libpng12 1.2.4-2
libpng2 1.0.12-1
libpopt0 1.6.4-4
libreadline4 4.1-2
libreadline5 4.3-2
libxml2 2.4.23-1
login 1.4-4
lynx 2.8.4-1
m4 0.0
make 3.79.1-7
man 1.5g-2
mingw 20010917-1
mingw-runtime 2.2-1
mktemp 1.4-1
mt 2.0.1-1
mutt 1.4-1
ncftp 3.1.4-1
ncurses 5.2-8
newlib-man 20020801
opengl 1.1.0-6
openssh 3.4p1-5
openssl 0.9.6g-1
patch 2.5-3
pcre 3.7-1
perl 5.6.1-2
popt 1.6.4-4
postgresql 7.2.3-1
prc-tools 2.1
prc-tools-htmldocs 2.1
python 2.2.1-1
readline 4.3-2
regex 4.4-2
rsync 2.5.5-1
rxvt 2.7.2-14
sed 3.02-1
sh-utils 2.0-2
squid 2.4.STABLE7-1
ssmtp 2.38.7-3
tar 1.13.25-1
tcltk 20001125-1
tcsh 6.11.00-4
termcap 20020930-1
terminfo 5.2-3
tetex-beta 20020911-1
tetex-bin 20020911-1
texinfo 4.2-4
textutils 2.0.21-1
tiff 3.5.7-1
time 1.7-1
unzip 5.50-1
vim 6.1-2
w32api 2.0-1
wget 1.8.2-1
which 1.5-1
whois 4.5.17-1
xpm-nox 4.2.0-1
zip 2.3-2
zlib 1.1.4-1
Use -h to see help about each section
More information about the openssh-unix-dev
mailing list