Mail Archives: cygwin/2002/12/10/10:31:21
------=_NextPart_000_001F_01C2A036.F1DA7820
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by antivirus.uqam.ca id gBAFSVfV013682
Hi,
I posted last week a message about ssh client not working anymore aft=
er
I upgraded cygwin.
Since it seems I am the only one having this problem I downloaded compile=
d
and traced ssh
to find that in fact it doesn't read correctly the ID string coming form =
the
sshd server. The problem
is that after the connection, the read gives garbage. I have here a simpl=
e
program which
reproduces this problem
--BEGIN
#include <sys/socket.h>
#include <arpa/inet.h>
int main(int argc,char *args[])
{
int sock, lus, i;
struct sockaddr_in serveraddr;
char chaine[255];
sock =3D socket(AF_INET, SOCK_STREAM, 0);
if (sock < 0)
printf("error");
bzero(&serveraddr,sizeof(serveraddr));
serveraddr.sin_family =3D AF_INET;
serveraddr.sin_port =3D htons(22); /* 22 =3D sshd port */
/* 192.168.238.1" is a linux machine on my private home network, replace =
by
something else. */
inet_aton("192.168.238.1",&serveraddr.sin_addr);
if (connect(sock,(struct sockaddr *) &serveraddr, sizeof(serveraddr)) >=
=3D
0) {
printf("connected\n");
lus =3D read(sock,chaine,255);
for (i =3D 0; i < lus; i++)
printf("%c",chaine[i]);
printf("\n");
}
close(sock);
}
--END
make bidon
will compile the program.
Execution on linux gives
connected
SSH-1.99-OpenSSH_2.5.2p2
execution on cygwin gives
bash-2.05b$ ./bidon.exe
connected
=90=E9=1B=D1 =FEu=B8=FF=B7=18o=01
So something really basic must be wrong on my system, but what ?
I deleted and reinstalled cygwin, I redownloaded and reinstalled
cygwin1.3.17-1 but it didn't help.
Enclose cygcheck -svr output
------=_NextPart_000_001F_01C2A036.F1DA7820
Content-Type: text/plain;
name="cygcheck.txt"
Content-Disposition: attachment;
filename="cygcheck.txt"
Content-Transfer-Encoding: quoted-printable
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Tue Dec 10 10:08:35 2002
Windows 98 SE Ver 4.10 Build 2222=20
Path: D:\cygwin\usr\local\bin
D:\cygwin\bin
D:\cygwin\bin
c:\WINDOWS
c:\WINDOWS\COMMAND
D:\cygwin\usr\X11R6\bin
SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS
HOME =3D `D:\cygwin\home\villem'
MAKE_MODE =3D `unix'
PWD =3D `/usr/src/openssh-3.5p1-2/DEBUG'
USER =3D `villem'
CMDLINE =3D `bash --login -i'
COMSPEC =3D `C:\WINDOWS\COMMAND.COM'
HOMEDRIVE =3D `D:'
HOMEPATH =3D `\cygwin\home\villem'
MANPATH =3D `:/usr/ssl/man'
OLDPWD =3D `/home/villem'
PROMPT =3D `$p$g'
PS1 =3D `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
SHLVL =3D `1'
TEMP =3D `c:\WINDOWS\TEMP'
TERM =3D `cygwin'
TEXMF =3D `{/usr/share/lilypond/1.6.5,}'
TMP =3D `c:\WINDOWS\TEMP'
WINBOOTDIR =3D `C:\WINDOWS'
WINDIR =3D `C:\WINDOWS'
_ =3D `/usr/bin/cygcheck'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2
(default) =3D `/cygdrive'
cygdrive flags =3D 0x00000022
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts =
v2\/usr/X11R6/lib/X11/fonts
(default) =3D `D:\cygwin\usr\X11R6\lib\X11\fonts'
flags =3D 0x0000000a
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/
(default) =3D `D:\cygwin'
flags =3D 0x0000000a
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
(default) =3D `D:\cygwin/bin'
flags =3D 0x0000000a
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
(default) =3D `D:\cygwin/lib'
flags =3D 0x0000000a
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\Program Options
a: fd N/A N/A =20
c: hd FAT32 7155Mb 76% CP UN =20
d: hd FAT32 7155Mb 43% CP UN =20
e: cd N/A N/A =20
f: cd N/A N/A =20
D:\cygwin\usr\X11R6\lib\X11\fonts /usr/X11R6/lib/X11/fonts system =
binmode
D:\cygwin / system =
binmode
D:\cygwin/bin /usr/bin system =
binmode
D:\cygwin/lib /usr/lib system =
binmode
. /cygdrive user =
binmode,cygdrive
Found: D:\cygwin\bin\bash.exe
Found: D:\cygwin\bin\cat.exe
Found: D:\cygwin\bin\cpp.exe
Found: D:\cygwin\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: D:\cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
Found: D:\cygwin\bin\gcc.exe
Found: D:\cygwin\bin\gdb.exe
Found: D:\cygwin\bin\ld.exe
Found: D:\cygwin\bin\ls.exe
Found: D:\cygwin\bin\make.exe
Found: D:\cygwin\bin\sh.exe
493k 2002/11/19 D:\cygwin\bin\cygcurl-2.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygcurl-2.dll" v0.0 ts=3D2002/11/19 9:38
136k 2002/10/17 D:\cygwin\bin\cygexpat-0.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygexpat-0.dll" v0.0 ts=3D2002/10/17 11:21
81k 2000/12/05 D:\cygwin\bin\cygitcl30.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygitcl30.dll" v0.0 ts=3D2000/11/25 20:43
35k 2000/12/05 D:\cygwin\bin\cygitk30.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygitk30.dll" v0.0 ts=3D2000/11/25 20:43
390k 2000/12/05 D:\cygwin\bin\cygtcl80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygtcl80.dll" v0.0 ts=3D2000/11/25 20:39
5k 2000/12/05 D:\cygwin\bin\cygtclpip80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
10k 2000/12/05 D:\cygwin\bin\cygtclreg80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygtclreg80.dll" v0.0 ts=3D2000/11/25 20:39
623k 2000/12/05 D:\cygwin\bin\cygtk80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygtk80.dll" v0.0 ts=3D2000/11/25 20:43
19k 2002/02/20 D:\cygwin\bin\cyggdbm.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cyggdbm.dll" v0.0 ts=3D2002/2/19 22:05
119k 2002/02/09 D:\cygwin\bin\cygjpeg6b.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygjpeg6b.dll" v0.0 ts=3D2002/2/9 0:19
58k 2002/05/07 D:\cygwin\bin\cygbz2-1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygbz2-1.dll" v0.0 ts=3D2002/5/7 2:33
490k 2002/09/21 D:\cygwin\bin\cygguile-12.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygguile-12.dll" v0.0 ts=3D2002/9/21 6:01
63k 2002/09/21 D:\cygwin\bin\cygguile-srfi-srfi-13-14-v-1-1.dll - =
os=3D4.0 img=3D1.0 sys=3D4.0
"cygguile-srfi-srfi-13-14-v-1-1.dll" v0.0 =
ts=3D2002/9/21 6:01
24k 2002/09/21 D:\cygwin\bin\cygguile-srfi-srfi-4-v-1-1.dll - =
os=3D4.0 img=3D1.0 sys=3D4.0
"cygguile-srfi-srfi-4-v-1-1.dll" v0.0 ts=3D2002/9/21 =
6:01
14k 2002/09/21 D:\cygwin\bin\cygguilereadline-v-12-12.dll - os=3D4.0 =
img=3D1.0 sys=3D4.0
"cygguilereadline-v-12-12.dll" v0.0 ts=3D2002/9/21 =
6:01
929k 2002/06/24 D:\cygwin\bin\cygiconv-2.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygiconv-2.dll" v0.0 ts=3D2002/6/24 14:24
21k 2001/06/20 D:\cygwin\bin\cygintl.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygintl.dll" v0.0 ts=3D2001/6/20 13:09
22k 2001/12/13 D:\cygwin\bin\cygintl-1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygintl-1.dll" v0.0 ts=3D2001/12/13 4:28
28k 2002/09/20 D:\cygwin\bin\cygintl-2.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygintl-2.dll" v0.0 ts=3D2002/9/19 23:13
59k 2002/09/20 D:\cygwin\bin\cygkpathsea-3-3-7.dll - os=3D4.0 =
img=3D1.0 sys=3D4.0
"cygkpathsea-3-3-7.dll" v0.0 ts=3D2002/9/20 10:54
25k 2002/07/16 D:\cygwin\bin\cygltdl-3.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygltdl-3.dll" v0.0 ts=3D2002/7/16 0:05
45k 2001/04/25 D:\cygwin\bin\cygform5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygform5.dll" v0.0 ts=3D2001/4/25 1:28
26k 2001/04/25 D:\cygwin\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygmenu5.dll" v0.0 ts=3D2001/4/25 1:27
156k 2001/04/25 D:\cygwin\bin\cygncurses++5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygncurses++5.dll" v0.0 ts=3D2001/4/25 1:29
226k 2001/04/25 D:\cygwin\bin\cygncurses5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygncurses5.dll" v0.0 ts=3D2001/4/25 1:17
15k 2001/04/25 D:\cygwin\bin\cygpanel5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygpanel5.dll" v0.0 ts=3D2001/4/25 1:27
35k 2002/01/09 D:\cygwin\bin\cygform6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygform6.dll" v0.0 ts=3D2002/1/9 1:03
20k 2002/01/09 D:\cygwin\bin\cygmenu6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygmenu6.dll" v0.0 ts=3D2002/1/9 1:03
175k 2002/01/09 D:\cygwin\bin\cygncurses++6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygncurses++6.dll" v0.0 ts=3D2002/1/9 1:03
202k 2002/01/09 D:\cygwin\bin\cygncurses6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygncurses6.dll" v0.0 ts=3D2002/1/9 1:03
12k 2002/01/09 D:\cygwin\bin\cygpanel6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygpanel6.dll" v0.0 ts=3D2002/1/9 1:03
175k 2002/07/22 D:\cygwin\bin\cygpng10.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygpng10.dll" v0.0 ts=3D2002/7/22 11:51
179k 2002/07/22 D:\cygwin\bin\cygpng12.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygpng12.dll" v0.0 ts=3D2002/7/22 12:03
22k 2002/06/09 D:\cygwin\bin\cygpopt-0.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygpopt-0.dll" v0.0 ts=3D2002/6/9 1:45
17k 2001/06/28 D:\cygwin\bin\cyghistory4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cyghistory4.dll" v0.0 ts=3D2001/1/6 23:34
108k 2001/06/28 D:\cygwin\bin\cygreadline4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygreadline4.dll" v0.0 ts=3D2001/1/6 23:34
20k 2002/10/10 D:\cygwin\bin\cyghistory5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cyghistory5.dll" v0.0 ts=3D2002/10/10 13:28
127k 2002/10/10 D:\cygwin\bin\cygreadline5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygreadline5.dll" v0.0 ts=3D2002/10/10 13:28
633k 2002/07/22 D:\cygwin\bin\cygxml2-2.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygxml2-2.dll" v0.0 ts=3D2002/7/22 2:29
50k 2002/03/17 D:\cygwin\bin\cygexslt-0.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygexslt-0.dll" v0.0 ts=3D2002/3/17 1:24
152k 2002/03/17 D:\cygwin\bin\cygxslt-1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygxslt-1.dll" v0.0 ts=3D2002/3/17 1:19
15k 2002/03/17 D:\cygwin\bin\cygxsltbreakpoint-1.dll - os=3D4.0 =
img=3D1.0 sys=3D4.0
"cygxsltbreakpoint-1.dll" v0.0 ts=3D2002/3/17 1:24
644k 2002/12/08 D:\cygwin\bin\cygcrypto.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygcrypto.dll" v0.0 ts=3D2002/12/8 14:57
165k 2002/12/08 D:\cygwin\bin\cygssl.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygssl.dll" v0.0 ts=3D2002/12/8 14:57
40k 2001/11/21 D:\cygwin\bin\cygpcre.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygpcre.dll" v0.0 ts=3D2001/11/21 17:15
39k 2001/11/21 D:\cygwin\bin\cygpcreposix.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygpcreposix.dll" v0.0 ts=3D2001/11/21 17:15
253k 2002/02/10 D:\cygwin\bin\cygtiff3.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygtiff3.dll" v0.0 ts=3D2002/2/10 3:34
50k 2002/03/12 D:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0
"cygz.dll" v0.0 ts=3D2002/3/11 23:38
923k 2002/11/27 D:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
"cygwin1.dll" v0.0 ts=3D2002/11/27 18:54
Cygwin DLL version info:
DLL version: 1.3.17
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 67
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:=20
Build date: Wed Nov 27 18:54:29 EST 2002
Shared id: cygwin1S3
41k 2002/05/14 D:\cygwin\usr\X11R6\bin\cygPropList-0.dll - os=3D4.0 =
img=3D1.0 sys=3D4.0
"cygPropList-0.dll" v0.0 ts=3D2002/5/13 23:13
Cygwin Package Information
Last downloaded files to: =
D:\Roger\telechargements\cygwin\1.3.17-1\ftp%3a%2f%2farchive.progeny.com%=
2fcygwin
Last downloaded files from: ftp://archive.progeny.com/cygwin
Package Version =20
WindowMaker 0.80.0-2 =20
XFree86-base 4.2.0-1 =20
XFree86-bin 4.2.0-2 =20
XFree86-etc 4.2.0-1 =20
XFree86-f100 4.2.0-2 =20
XFree86-fenc 4.2.0-2 =20
XFree86-fnts 4.2.0-2 =20
XFree86-fscl 4.2.0-2 =20
XFree86-html 4.2.0-1 =20
XFree86-lib 4.2.0-3 =20
XFree86-startup-scripts4.2.0-3 =20
XFree86-xserv 4.2.0-15 =20
_update-info-dir 00098-1 =20
ash 20020731-1 =20
autoconf 2.54-1 =20
autoconf-devel 2.54-1 =20
autoconf-stable 2.13-4 =20
base-files 1.1-1 =20
base-passwd 1.0-1 =20
bash 2.05b-8 =20
binutils 20021117-1 =20
bzip2 1.0.2-2 =20
clear 1.0-1 =20
crypt 1.0-1 =20
ctags 5.2-1 =20
curl 7.10.2-1 =20
cygutils 1.1.3-1 =20
cygwin 1.3.17-1 =20
cygwin-doc 1.2-1 =20
diff 1.0-1 =20
diffutils 2.8.1-1 =20
doxygen 1.2.18-1 =20
ed 0.2-1 =20
emacs 21.2-8 =20
emacs-X11 21.2-8 =20
enscript 1.6.3-3 =20
expat 1.95.5-1 =20
figlet 2.2-1 =20
file 3.37-1 =20
fileutils 4.1-1 =20
findutils 4.1.7-4 =20
fvwm 2.4.7-2 =20
gawk 3.1.1-5 =20
gcc 3.2-3 =20
gcc-mingw 3.2-20020817-1 =20
gdb 20010428-3 =20
gdbm 1.8.0-4 =20
gettext 0.11.5-1 =20
ghostscript 7.05-2 =20
ghostscript-base 7.05-2 =20
ghostscript-x11 7.05-2 =20
grep 2.5-1 =20
groff 1.17.2-1 =20
gzip 1.3.3-4 =20
indent 2.2.8-1 =20
jpeg 6b-7 =20
less 374-1 =20
libPropList 0.10.1-3 =20
libbz2_1 1.0.2-2 =20
libguile12 1.6.0-1 =20
libiconv2 1.8-2 =20
libintl 0.10.38-3 =20
libintl1 0.10.40-1 =20
libintl2 0.11.5-1 =20
libkpathsea3 20020911-1 =20
libltdl3 20020705-2 =20
libncurses5 5.2-1 =20
libncurses6 5.2-8 =20
libpng10 1.0.14-2 =20
libpng12 1.2.4-2 =20
libpopt0 1.6.4-4 =20
libreadline4 4.1-2 =20
libreadline5 4.3-2 =20
libxml2 2.4.23-1 =20
libxslt 1.0.13-1 =20
lilypond 1.6.5-1 =20
login 1.7-1 =20
m4 0.0 =20
make 3.79.1-7 =20
man 1.5g-2 =20
mingw-runtime 2.2-1 =20
mktemp 1.4-1 =20
more 2.11o-1 =20
ncftp 3.1.4-1 =20
ncurses 5.2-8 =20
newlib-man 20020801 =20
openssh 3.5p1-2 =20
openssl 0.9.6h-1 =20
openssl-devel 0.9.6h-1 =20
patch 2.5-3 =20
pcre 3.7-1 =20
pkgconfig 0.12.0-1 =20
python 2.2.2-1 =20
readline 4.3-2 =20
rxvt 2.7.9-2 =20
sed 4.0.1-1 =20
sh-utils 2.0-3 =20
tar 1.13.25-1 =20
tcltk 20001125-1 =20
termcap 20020930-1 =20
terminfo 5.2-3 =20
tetex 20020911-1 =20
tetex-beta 20020911-1 =20
tetex-bin 20020911-1 =20
texinfo 4.2-4 =20
textutils 2.0.21-1 =20
tiff 3.5.7-1 =20
time 1.7-1 =20
unzip 5.50-1 =20
w32api 2.1-1 =20
which 1.5-1 =20
zip 2.3-2 =20
zlib 1.1.4-1 =20
Use -h to see help about each section
------=_NextPart_000_001F_01C2A036.F1DA7820
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
------=_NextPart_000_001F_01C2A036.F1DA7820--
- Raw text -