Re: ssh and scp fail connecting to a root account

2000-09-20 Thread Udo Schweigert

On Wed, Sep 20, 2000 at 04:06:24 +0100, Brian Somers wrote:
  On 17 Sep 2000, Jason Evans wrote:
  
   On Fri, Sep 15, 2000 at 03:40:12PM +0100, Konstantin Chuguev wrote:
Udo Schweigert wrote:

 after a fresh build of -current openssh does not work if connecting to the
 root-user. For example (tested from a -stable machine, but the same from
 4.1-RELEASE):

Yes, I've been seeing the same thing since the checkout of the SMPng stuff...
No idea why it's happening.
   
   I've seen similar things intermittently over the past 10 days, and
   specifically the same problem for the past three days or so.  I'm pretty
   sure that the problems have been associated with the random device rather
   than the SMP work specifically.
  
  Well, the crash is apparently due to malloc flags - remove the
  /etc/malloc.conf link and it may work better. I've only seen this once,
  and when I tried to run sshd under gdb it went away, and now I can't
  reproduce it again. :-(
 
 Got it !
 
 See version 1.6 of src/lib/libc/stdlib/setenv.c.  This took me all 
 night - Up for work in two hours !!! :-(
 

Perfect! Now it also works for me. Thank you very much, Brian.

Best regards.
-- 
Udo Schweigert, Siemens AG   | Voice  : +49 89 636 42170
ZT IK 3, Siemens CERT| Fax: +49 89 636 41166
D-81730 Muenchen / Germany   | email  : [EMAIL PROTECTED]
PGP-2/5 fingerprint  | D8 A5 DF 34 EC 87 E8 C6  E2 26 C4 D0 EE 80 36 B2


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ssh and scp fail connecting to a root account

2000-09-20 Thread Nate Williams

[ OpenSSH failure with particular malloc.conf flags ]

 Got it !
 
 See version 1.6 of src/lib/libc/stdlib/setenv.c.  This took me all 
 night - Up for work in two hours !!! :-(

Good catch!


Nate


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ssh and scp fail connecting to a root account

2000-09-19 Thread Brian Somers

 On 17 Sep 2000, Jason Evans wrote:
 
  On Fri, Sep 15, 2000 at 03:40:12PM +0100, Konstantin Chuguev wrote:
   Udo Schweigert wrote:
   
after a fresh build of -current openssh does not work if connecting to the
root-user. For example (tested from a -stable machine, but the same from
4.1-RELEASE):
   
   Yes, I've been seeing the same thing since the checkout of the SMPng stuff...
   No idea why it's happening.
  
  I've seen similar things intermittently over the past 10 days, and
  specifically the same problem for the past three days or so.  I'm pretty
  sure that the problems have been associated with the random device rather
  than the SMP work specifically.
 
 Well, the crash is apparently due to malloc flags - remove the
 /etc/malloc.conf link and it may work better. I've only seen this once,
 and when I tried to run sshd under gdb it went away, and now I can't
 reproduce it again. :-(

Got it !

See version 1.6 of src/lib/libc/stdlib/setenv.c.  This took me all 
night - Up for work in two hours !!! :-(

 Kris
 
 --
 In God we Trust -- all others must submit an X.509 certificate.
 -- Charles Forsythe [EMAIL PROTECTED]

-- 
Brian [EMAIL PROTECTED]brian@[uk.]FreeBSD.org
  http://www.Awfulhak.org   brian@[uk.]OpenBSD.org
Don't _EVER_ lose your sense of humour !




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ssh and scp fail connecting to a root account

2000-09-17 Thread Jason Evans

On Fri, Sep 15, 2000 at 03:40:12PM +0100, Konstantin Chuguev wrote:
 Udo Schweigert wrote:
 
  after a fresh build of -current openssh does not work if connecting to the
  root-user. For example (tested from a -stable machine, but the same from
  4.1-RELEASE):
 
 Yes, I've been seeing the same thing since the checkout of the SMPng stuff...
 No idea why it's happening.

I've seen similar things intermittently over the past 10 days, and
specifically the same problem for the past three days or so.  I'm pretty
sure that the problems have been associated with the random device rather
than the SMP work specifically.

Jason


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ssh and scp fail connecting to a root account

2000-09-17 Thread Kris Kennaway

On 17 Sep 2000, Jason Evans wrote:

 On Fri, Sep 15, 2000 at 03:40:12PM +0100, Konstantin Chuguev wrote:
  Udo Schweigert wrote:
  
   after a fresh build of -current openssh does not work if connecting to the
   root-user. For example (tested from a -stable machine, but the same from
   4.1-RELEASE):
  
  Yes, I've been seeing the same thing since the checkout of the SMPng stuff...
  No idea why it's happening.
 
 I've seen similar things intermittently over the past 10 days, and
 specifically the same problem for the past three days or so.  I'm pretty
 sure that the problems have been associated with the random device rather
 than the SMP work specifically.

Well, the crash is apparently due to malloc flags - remove the
/etc/malloc.conf link and it may work better. I've only seen this once,
and when I tried to run sshd under gdb it went away, and now I can't
reproduce it again. :-(

Kris

--
In God we Trust -- all others must submit an X.509 certificate.
-- Charles Forsythe [EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ssh and scp fail connecting to a root account

2000-09-16 Thread Udo Schweigert

On Sat, Sep 16, 2000 at 04:03:32 +0100, Brian Somers wrote:
  On Fri, 15 Sep 2000, Udo Schweigert wrote:
  
   The strange: both commands succeed if connecting to a non-root account.
   
   Are there any others with these problems? Any clues?
  
  run sshd -d on the server, ssh -d on the client, and send me the output
 
 Hmm, I've been seeing this problem too.  I ran sshd -p 1234 -d and it 
 worked ok.  I then killed the running sshd and started sshd -d and it 
 worked too.  I then ran sshd and it worked.
 

I tried that, and it did not work for me. Same results as on port 22.

Best regards.
-- 
Udo Schweigert, Siemens AG   | Voice  : +49 89 636 42170
ZT IK 3, Siemens CERT| Fax: +49 89 636 41166
D-81730 Muenchen / Germany   | email  : [EMAIL PROTECTED]
PGP-2/5 fingerprint  | D8 A5 DF 34 EC 87 E8 C6  E2 26 C4 D0 EE 80 36 B2


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ssh and scp fail connecting to a root account

2000-09-16 Thread Brian Somers

  On Fri, 15 Sep 2000, Udo Schweigert wrote:
  
   The strange: both commands succeed if connecting to a non-root account.
   
   Are there any others with these problems? Any clues?
  
  run sshd -d on the server, ssh -d on the client, and send me the output
 
 Hmm, I've been seeing this problem too.  I ran sshd -p 1234 -d and it 
 worked ok.  I then killed the running sshd and started sshd -d and it 
 worked too.  I then ran sshd and it worked.
 
 I'll look into this some more when I can reboot the machine :-/

This is what I get on the server:

hak:~ $ sudo sshd -d
debug: sshd version OpenSSH_2.2.0
debug: read DSA private key done
debug: Bind to port 22 on ::.
Server listening on :: port 22.
debug: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug: Server will not fork when running in debugging mode.
Connection from localhost port 1031
Connection from ::1 port 1031
debug: Client protocol version 1.5; client software version OpenSSH_2.2.0
debug: Local version string SSH-1.99-OpenSSH_2.2.0
debug: Sent 768 bit public key and 1024 bit host key.
debug: Encryption type: 3des
debug: Received session key; encryption turned on.
debug: Installing crc compensation attack detector.
debug: Attempting authentication for brian.
Accepted rsa for brian from ::1 port 1031
debug: session_new: init
debug: session_new: session 0
debug: Allocating pty.
debug: Received request for X11 forwarding with auth spoofing.
debug: fd 8 setting O_NONBLOCK
debug: channel 0: new [X11 inet listener]
debug: fd 9 setting O_NONBLOCK
debug: channel 1: new [X11 inet listener]
debug: Received authentication agent forwarding request.
debug: fd 10 setting O_NONBLOCK
debug: channel 2: new [auth socket]
debug: Entering interactive session.
debug: no set_nonblock for tty fd 3
debug: Setting controlling tty using TIOCSCTTY.
debug: no set_nonblock for tty fd 4
debug: server_init_dispatch_13
debug: server_init_dispatch_15
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: Received SIGCHLD.
debug: tvp!=NULL kid 1 mili 10
debug: tvp!=NULL kid 1 mili 100
debug: End of interactive session; stdin 0, stdout (read 310, sent 310), stderr 0 
bytes.
debug: channel_free: channel 0: status: The following connections are open:

debug: channel_free: channel 1: status: The following connections are open:

debug: channel_free: channel 2: status: The following connections are open:

Disconnecting: Command terminated on signal 6.
debug: Calling cleanup 0x8053874(0x0)
debug: xauthfile_cleanup_proc called
debug: Calling cleanup 0x8060ee0(0x0)
debug: Calling cleanup 0x80538e8(0x80758c0)
debug: pty_cleanup_proc: /dev/ttyp2
debug: Calling cleanup 0x805b890(0x0)
hak:~ $ 


And on the client I see this:

hak:~ $ ssh -v localhost
SSH Version OpenSSH_2.2.0, protocol versions 1.5/2.0.
Compiled with SSL (0x0090581f).
debug: Reading configuration data /etc/ssh/ssh_config
debug: Applying options for *
debug: ssh_connect: getuid 15 geteuid 15 anon 1
debug: Connecting to localhost [::1] port 22.
debug: Connection established.
debug: Remote protocol version 1.99, remote software version OpenSSH_2.2.0
debug: Local version string SSH-1.5-OpenSSH_2.2.0
debug: Waiting for server public key.
debug: Received server public key (768 bits) and host key (1024 bits).
debug: Forcing accepting of host key for loopback/localhost.
debug: Encryption type: 3des
debug: Sent encrypted session key.
debug: Installing crc compensation attack detector.
debug: Received encrypted confirmation.
debug: Trying RSA authentication via agent with '[EMAIL PROTECTED]'
debug: Received RSA challenge from server.
debug: Sending response to RSA challenge.
debug: Remote: RSA authentication accepted.
debug: RSA authentication accepted by server.
debug: Requesting pty.
debug: Requesting X11 forwarding with authentication spoofing.
debug: Requesting authentication agent forwarding.
debug: Requesting shell.
debug: Entering interactive session.
Last login: Sat Sep 16 13:54:54 2000 from localhost
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California.  All rights reserved.
FreeBSD 5.0-CURRENT (HAK) #1: Sat Sep 16 13:24:21 BST 2000
sshd in realloc():Received disconnect: Command terminated on signal 6.
debug: Calling cleanup 0x804db94(0x0)
debug: Calling cleanup 0x8056fe4(0x0)
hak:~ $ 

The client works ok connecting to older machines.
-- 
Brian [EMAIL PROTECTED]brian@[uk.]FreeBSD.org
  http://www.Awfulhak.org   brian@[uk.]OpenBSD.org
Don't _EVER_ lose your sense of humour !




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



ssh and scp fail connecting to a root account

2000-09-15 Thread Udo Schweigert

Hello all,

after a fresh build of -current openssh does not work if connecting to the
root-user. For example (tested from a -stable machine, but the same from
4.1-RELEASE):

---
$ ssh host -l root
Last login: Fri Sep 15 16:22:48 2000 from 
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California.  All rights reserved.
FreeBSD 5.0-CURRENT () #21: Fri Sep 15 11:59:41 CEST 2000

Welcome to FreeBSD!

sshd in realloc(): error: junk pointer, too high to make sense.
Connection to  closed.
---

(This implies that "PermitRootLogin" is set to yes in /etc/ssh/sshd_config)

The only soultion is to have "UseLogin" set to yes. But nevertheless scp
does never work if copying to the root account like this:

---
$ scp file root@host:.
select: Bad file descriptor
lost connection
---

The strange: both commands succeed if connecting to a non-root account.

Are there any others with these problems? Any clues?

Best regards.
-- 
Udo Schweigert, Siemens AG   | Voice  : +49 89 636 42170
ZT IK 3, Siemens CERT| Fax: +49 89 636 41166
D-81730 Muenchen / Germany   | email  : [EMAIL PROTECTED]
PGP-2/5 fingerprint  | D8 A5 DF 34 EC 87 E8 C6  E2 26 C4 D0 EE 80 36 B2


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ssh and scp fail connecting to a root account

2000-09-15 Thread Konstantin Chuguev

Udo Schweigert wrote:

 Hello all,

 after a fresh build of -current openssh does not work if connecting to the
 root-user. For example (tested from a -stable machine, but the same from
 4.1-RELEASE):

 ---
 ---

 The strange: both commands succeed if connecting to a non-root account.

 Are there any others with these problems? Any clues?


Yes, I've been seeing the same thing since the checkout of the SMPng stuff...
No idea why it's happening.


--
  * *Konstantin Chuguev - Application Engineer
   *  *  Francis House, 112 Hills Road
 *   Cambridge CB2 1PQ, United Kingdom
 D  A  N  T  E   WWW:http://www.dante.net





To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ssh and scp fail connecting to a root account

2000-09-15 Thread Udo Schweigert

On Sat, Sep 16, 2000 at 00:51:51 +0800, Clive Lin wrote:
 On Fri, Sep 15, 2000 at 04:33:44PM +0200, Udo Schweigert wrote:
  sshd in realloc(): error: junk pointer, too high to make sense.
  Connection to  closed.
 Hm... did you just make new ssh instead of
 making world or rebuilding kernel ?
 

No, I did a complete "make world" + a new kernel (with config -r)

 I got exactly the same error on the day sshd upgraded.
 dmesg shows that sshd got signal 11 all the time.
 

My sshd got signal 6 (ABORT)

-- 
Udo Schweigert, Siemens AG   | Voice  : +49 89 636 42170
ZT IK 3, Siemens CERT| Fax: +49 89 636 41166
D-81730 Muenchen / Germany   | email  : [EMAIL PROTECTED]
PGP-2/5 fingerprint  | D8 A5 DF 34 EC 87 E8 C6  E2 26 C4 D0 EE 80 36 B2


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ssh and scp fail connecting to a root account

2000-09-15 Thread Kris Kennaway

On Fri, 15 Sep 2000, Udo Schweigert wrote:

 The strange: both commands succeed if connecting to a non-root account.
 
 Are there any others with these problems? Any clues?

run sshd -d on the server, ssh -d on the client, and send me the output

Kris

--
In God we Trust -- all others must submit an X.509 certificate.
-- Charles Forsythe [EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ssh and scp fail connecting to a root account

2000-09-15 Thread Brian Somers

 On Fri, 15 Sep 2000, Udo Schweigert wrote:
 
  The strange: both commands succeed if connecting to a non-root account.
  
  Are there any others with these problems? Any clues?
 
 run sshd -d on the server, ssh -d on the client, and send me the output

Hmm, I've been seeing this problem too.  I ran sshd -p 1234 -d and it 
worked ok.  I then killed the running sshd and started sshd -d and it 
worked too.  I then ran sshd and it worked.

I'll look into this some more when I can reboot the machine :-/

 Kris
 
 --
 In God we Trust -- all others must submit an X.509 certificate.
 -- Charles Forsythe [EMAIL PROTECTED]

-- 
Brian [EMAIL PROTECTED]brian@[uk.]FreeBSD.org
  http://www.Awfulhak.org   brian@[uk.]OpenBSD.org
Don't _EVER_ lose your sense of humour !




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message