public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Cygwin commands crashes after ssh login
@ 2001-01-17 13:43 frank.palazzolo
  2001-01-17 13:54 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 1 reply; 32+ messages in thread
From: frank.palazzolo @ 2001-01-17 13:43 UTC (permalink / raw)
  To: cygwin

>/bin/sh is bash in the standard gnu dist.. :-) So copy your compiled
>bash to /bin/sh.. 
>
>        /Andy

Thanks Andy,

That's what I thought too, but when the file sizes were so different I looked around and realized my sh.exe came from ash-20001002.tar.gz, which is a different shell and codebase, I guess.

-Frank



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Cygwin commands crashes after ssh login
@ 2001-01-18  7:23 Yadin Goldschmidt
  2001-01-18  8:18 ` Corinna Vinschen
  0 siblings, 1 reply; 32+ messages in thread
From: Yadin Goldschmidt @ 2001-01-18  7:23 UTC (permalink / raw)
  To: cygwin

Corinna,
I tried both -1 and -2. I think the problem is with the cygwin dll
since if I use 1.1.5 the problem disappears. What is also strange is
that if I run sshd -d from a shell the problem does not occur. It only 
occurs with sshd run from srvany. Please read carefully my setup
1., 2., 3. 4. in my previous mail, maybe you can reproduce it.
The CYGWIN variable ntsec, tty is defined in NT Control Panel ->system 
->environment. The files ssh_host_key and ssh_host_dsa_key have permissions 
-rw------- and belong to user.Adminstrators.
What is also interesting is that after the exception occurs I can
still run cygwin commands and the connection is not lost.

Yadin.






>On Wed, Jan 17, 2001 at 10:08:08AM -0500, Yadin Goldschmidt wrote:
>SSH Version OpenSSH_2.3.0p1, protocol versions 1.5/2.0.

>Which one? -1 or -2? Did you try both? Did you try the
>experimental version 20001221?

>Corinna
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Cygwin commands crashes after ssh login
@ 2001-01-17 13:12 frank.palazzolo
  2001-01-18  6:07 ` Corinna Vinschen
  2001-01-25 10:37 ` Erdely, Michael
  0 siblings, 2 replies; 32+ messages in thread
From: frank.palazzolo @ 2001-01-17 13:12 UTC (permalink / raw)
  To: cygwin

Hello,

I'm a newbie to cygwin, but I have this exact problem with sshd, and a little more info on it.

I'm running Win2K SP1 and using inetd to launch sshd.
I rebuilt bash.exe from the sources and the problem disappeared!
However, I also tried replacing the shell of the logon user with /bin/sh and the problem still occurs.  I haven't rebuilt sh.exe.

Could there be something wrong with the bash.exe in the binary distribution..?  

By the way, it seems that a few lines failed in the configure.in for bash:

dnl Use GNU m4 macros to get the distribution and patchlevel information
dnl into configure without requiring the files to be distributed
[BASHVERS=]dnl
esyscmd(cat _distribution)dnl
[BASHPATCH]dnl
esyscmd(cat _patchlevel)dnl

I had to to hack those two lines to get bash to build, is that normal?

Thanks,
Frank Palazzolo

frank.palazzolo@autodesk.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Cygwin commands crashes after ssh login
@ 2001-01-17  7:08 Yadin Goldschmidt
  2001-01-18  6:10 ` Corinna Vinschen
  0 siblings, 1 reply; 32+ messages in thread
From: Yadin Goldschmidt @ 2001-01-17  7:08 UTC (permalink / raw)
  To: cygwin

Corina,
Here is the problem: I am running NT4.o sp6. cygwin 1.1.7
1. Im running sshd using srvany from a user who is part of administrator 
group
2. This user has all the additional previleges.
3. There is a line in NT environment:
CYGWIN = ntsec tty
4. The files in /etc belong to user.Administrators where 'user' is
the user account from which sshd is run.
5. Everything is fine when I login as that user and use password 
authentication. But when I login usind a different account an exception 
occurs. Here is the debug from ssh -v. I only replaced the machine name by 
XXX.XXX

$ssh -v XXX.XXX -l Administrator
SSH Version OpenSSH_2.3.0p1, protocol versions 1.5/2.0.
Compiled with SSL (0x0090581f).
debug: Reading configuration data /etc/ssh_config
debug: Applying options for *
debug: Seeding random number generator
debug: ssh_connect: getuid 1000 geteuid 1000 anon 0
debug: Connecting to XXX.XXX [XXX.XXX.XXX.XX] port 22.
debug: Seeding random number generator
debug: Allocated local port 955.
debug: Connection established.
debug: Remote protocol version 1.99, remote software version OpenSSH_2.3.0p1
debug: no match: OpenSSH_2.3.0p1
debug: Local version string SSH-1.5-OpenSSH_2.3.0p1
debug: Waiting for server public key.
debug: Received server public key (768 bits) and host key (1024 bits).
debug: Host 'XXX.XXX' is known and matches the RSA host key.

debug: Seeding random number generator
debug: Encryption type: 3des
debug: Sent encrypted session key.
debug: Installing crc compensation attack detector.
debug: Received encrypted confirmation.
debug: Doing password authentication.
Administrator@XXX.XXX's password:
debug: Requesting pty.
debug: Requesting shell.
debug: Entering interactive session.
      0 [main] ?a 0 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
Exception: STATUS_ACCESS_VIOLATION at eip=61001B87
eax=00000069 ebx=352E3673 ecx=00000000 edx=352E367B esi=00000000 
edi=0240FF74
ebp=0240FC2C esp=0240FECC program=?a
cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0240FC2C  61001B87  (00000000, 00000000, 00000000, 00000000)
0240FEF4  61001B87  (00000038, 61000001, 0240FF44, 610032C9)
0240FF44  610033D8  (004072CC, 6107C13C, 00000000, 00000000)
0240FF74  61003AAD  (00000000, 00000000, 00000000, 00000000)
0240FF94  61003AEC  (00407230, 004011D0, 0240FFC0, 00401038)
0240FFA4  00405206  (004011D0, 8011C6C8, 77F1B9E7, FFFFFFFE)
0240FFC0  00401038  (00000000, 00000000, 7FFDF000, 7FFDF000)
0240FFF0  77F1B9EA  (00401000, 00000000, 000000B0, 00000100)

In addition a Dr. Watson box appears with the following information:
id.exe
Exception: access violation (0xc0000005), Address 0x610045f4

Yadin.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 32+ messages in thread
[parent not found: <Corinna>]

end of thread, other threads:[~2001-01-25 16:30 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-17 13:43 Cygwin commands crashes after ssh login frank.palazzolo
2001-01-17 13:54 ` Larry Hall (RFK Partners, Inc)
  -- strict thread matches above, loose matches on Subject: below --
2001-01-18  7:23 Yadin Goldschmidt
2001-01-18  8:18 ` Corinna Vinschen
2001-01-17 13:12 frank.palazzolo
2001-01-18  6:07 ` Corinna Vinschen
2001-01-25 10:37 ` Erdely, Michael
2001-01-25 12:25   ` Ross Smith
2001-01-25 12:34     ` Larry Hall (RFK Partners, Inc)
2001-01-25 13:57       ` Ross Smith
2001-01-25 15:00         ` Larry Hall (RFK Partners, Inc)
2001-01-25 13:36     ` Erdely, Michael
2001-01-25 14:30       ` Earnie Boyd
2001-01-25 14:52         ` Erdely, Michael
2001-01-25 16:30           ` Earnie Boyd
2001-01-17  7:08 Yadin Goldschmidt
2001-01-18  6:10 ` Corinna Vinschen
     [not found] <Corinna>
     [not found] ` <Vinschen's>
     [not found]   ` <message>
     [not found]     ` <of>
     [not found]       ` <"Tue,>
     [not found]         ` <16>
     [not found]           ` <Jan>
     [not found]             ` <2001>
     [not found]               ` <14:32:32>
     [not found]                 ` <+0100>
2001-01-16  0:08                   ` Christer.H.Jansson
2001-01-16  4:41                     ` Erdely, Michael
2001-01-16  5:32                       ` Corinna Vinschen
2001-01-16  5:49                         ` Erdely, Michael
2001-01-16  6:08                         ` Henry S. Thompson
2001-01-16  7:38                           ` Larry Hall (RFK Partners, Inc)
2001-01-16  7:56                           ` Wei Ku
2001-01-16  8:02                             ` Christopher Faylor
2001-01-17  4:04                             ` Corinna Vinschen
2001-01-16  9:11                         ` Egor Duda
2001-01-16  9:28                           ` Christopher Faylor
2001-01-17  5:20                             ` Egor Duda
2001-01-17  5:29                               ` Christopher Faylor
2001-01-17  3:57                           ` Corinna Vinschen
2001-01-17  5:20                             ` Egor Duda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).