Re: openssh closes connection after username is sent

2005-10-27 Thread Matthew Burgess

Steve Prior wrote:

This is actually one of the reasons that a LFS 6.1.1 release was agreed 
to, though I haven't seen much progress in getting that out the door.


Err, have you been following lfs-book at all?  If so you'll have seen 
there's been a reasonable amount of work done on the 6.1.1 branch 
(a.k.a. 'testing').  Obviously this stuff takes time, sorry if it isn't 
fast enough for you but this is a voluntary project you know :/


Regards,

Matt.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: openssh closes connection after username is sent

2005-10-27 Thread Matthew Burgess

Dan Nicholson wrote:


I understand that.  That's what the Errata is for.  Until 6.1.1 is
released (if it is), this patch should probably appear there so people
don't continue to run into this problem.  Not everybody builds SVN.


We (in this instance we = website project) accept patches :-)

Regards,

Matt.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: openssh closes connection after username is sent

2005-10-27 Thread Dan Nicholson
On 10/27/05, Matthew Burgess [EMAIL PROTECTED] wrote:
 Dan Nicholson wrote:

  I understand that.  That's what the Errata is for.  Until 6.1.1 is
  released (if it is), this patch should probably appear there so people
  don't continue to run into this problem.  Not everybody builds SVN.

 We (in this instance we = website project) accept patches :-)

OK.  I'll try to put something together and send it to lfs-book.

Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: openssh closes connection after username is sent

2005-10-27 Thread Dan Nicholson
On 10/27/05, Dan Nicholson [EMAIL PROTECTED] wrote:
 On 10/27/05, Matthew Burgess [EMAIL PROTECTED] wrote:
  We (in this instance we = website project) accept patches :-)

 OK.  I'll try to put something together and send it to lfs-book.

Um, I just realized I have no idea how the website is generated. 
What's the proper way to pull the html for website?  Plus
's/lfs-book/website/' above.

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: openssh closes connection after username is sent

2005-10-27 Thread Archaic
On Thu, Oct 27, 2005 at 02:57:34PM -0700, Dan Nicholson wrote:
 
 Um, I just realized I have no idea how the website is generated. 
 What's the proper way to pull the html for website?  Plus
 's/lfs-book/website/' above.

svn export svn://svn.linuxfromscratch.org/www2

-- 
Archaic

Want control, education, and security from your operating system?
Hardened Linux From Scratch
http://www.linuxfromscratch.org/hlfs

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: openssh closes connection after username is sent

2005-10-27 Thread Matthew Burgess

Archaic wrote:

On Thu, Oct 27, 2005 at 02:57:34PM -0700, Dan Nicholson wrote:

Um, I just realized I have no idea how the website is generated. 
What's the proper way to pull the html for website?  Plus

's/lfs-book/website/' above.


svn export svn://svn.linuxfromscratch.org/www2


I think you meant `svn checkout' there, not `svn export'.  Without the 
'.svn' directories, I don't think 'svn diff  website.patch' will work.


Regards,

Matt.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: openssh closes connection after username is sent

2005-10-27 Thread Archaic
On Thu, Oct 27, 2005 at 11:20:38PM +0100, Matthew Burgess wrote:
 
 I think you meant `svn checkout' there, not `svn export'.  Without the 
 '.svn' directories, I don't think 'svn diff  website.patch' will work.

No, I meant export. It's 1/2 the download size and one can quickly cp
file{,.bak} for diff purposes. But, different strokes for different
folks.

-- 
Archaic

Want control, education, and security from your operating system?
Hardened Linux From Scratch
http://www.linuxfromscratch.org/hlfs

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: openssh closes connection after username is sent

2005-10-27 Thread Alexander E. Patrakov

Dan Nicholson wrote:


Here's a patch I made up for the errata page.  CC'ing website.  Could
someone with a real understanding of the bug have a look at the
wording?  (Alexander?  Matthew?)  Hopefully it meshes with the
stylings of the website.
+   lipGlibc-2.3.4 contains a bug where it will segfault when 
attempting
+   to chroot into a nonexisting directory.  This bug is 
triggered by the
+   OpenSSH-4.x daemon.  Applying this
+   a 
href=http://www.linuxfromscratch.org/patches/downloads/glibc/glibc-2.3.4-rtld_search_dirs-1.patch;patch/a
+   to the Glibc source files will fix the bug.  More 
discussion can be
+   seen in this
+   a href=http://blfs-bugs.linuxfromscratch.org/show_bug.cgi?id=1534;bug 
report/a./p/li


The description is wrong.

Glibc-2.3.4 contains a bug where it will segfault while attempting to 
load a shared library in an empty chroot environment.


--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: openssh closes connection after username is sent

2005-10-27 Thread Dan Nicholson
On 10/27/05, Alexander E. Patrakov [EMAIL PROTECTED] wrote:
 Dan Nicholson wrote:

  Here's a patch I made up for the errata page.  CC'ing website.  Could
  someone with a real understanding of the bug have a look at the
  wording?  (Alexander?  Matthew?)  Hopefully it meshes with the
  stylings of the website.
  + lipGlibc-2.3.4 contains a bug where it will segfault when 
  attempting
  + to chroot into a nonexisting directory.  This bug is 
  triggered by the
  + OpenSSH-4.x daemon.  Applying this
  + a 
  href=http://www.linuxfromscratch.org/patches/downloads/glibc/glibc-2.3.4-rtld_search_dirs-1.patch;patch/a
  + to the Glibc source files will fix the bug.  More 
  discussion can be
  + seen in this
  + a 
  href=http://blfs-bugs.linuxfromscratch.org/show_bug.cgi?id=1534;bug 
  report/a./p/li

 The description is wrong.

 Glibc-2.3.4 contains a bug where it will segfault while attempting to
 load a shared library in an empty chroot environment.

Thanks, Alexander.  Here's attempt #2 at the patch.

--
Dan
--- html/trunk/lfs/errata/6.1/index.html.orig	2005-10-27 19:55:38.0 -0700
+++ html/trunk/lfs/errata/6.1/index.html	2005-10-27 22:32:23.0 -0700
@@ -72,5 +72,12 @@
 		lipTexinfo installs a shell script `texi2pdf', but this isn't
 			mentioned in Texinfo's list of installed programs.  Thanks to
 			Randy McMurchy for the report./p/li
+		lipGlibc-2.3.4 contains a bug where it will segfault when attempting
+			to load a shared library in an empty chroot environment.  This bug is
+			triggered by the OpenSSH-4.x daemon.  Applying this
+			a href=http://www.linuxfromscratch.org/patches/downloads/glibc/glibc-2.3.4-rtld_search_dirs-1.patch;patch/a
+			to the Glibc source files will fix the bug.  More discussion can be
+			seen in this
+			a href=http://blfs-bugs.linuxfromscratch.org/show_bug.cgi?id=1534;bug report/a./p/li
  /ul
 !--#include virtual=/common/footer.html --
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: openssh closes connection after username is sent

2005-10-26 Thread Luca Dionisi
maybe a problem with your putty configuration.
verify that in Connection-SSH-Auth you have selected the check box
keyboard-interactive.

let me know!

Luca
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: openssh closes connection after username is sent

2005-10-26 Thread Alexander E. Patrakov

Jeroen Bruinink wrote:

Hi,

I just compiled openssl-0.9.7h and openssh-4.2p1. I ran all the tests 
and there were no errors. However, when I start sshd and try to login 
with putty the server closes the connection after I send my username. 
Below is the output of /usr/sbin/sshd -ddd. Can anyone point me in the 
right direction?


Short answer: known bug in glibc-2.3.4. Rebuild and reinstall glibc with 
this patch:


http://www.linuxfromscratch.org/patches/downloads/glibc/glibc-2.3.4-rtld_search_dirs-1.patch

If this doesn't help, this means that you see some other bug. Please 
report if this is the case.


--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: openssh closes connection after username is sent

2005-10-26 Thread Dan Nicholson

Jeroen Bruinink wrote:

Hi,

I just compiled openssl-0.9.7h and openssh-4.2p1. I ran all the tests 
and there were no errors. However, when I start sshd and try to login 
with putty the server closes the connection after I send my username. 
Below is the output of /usr/sbin/sshd -ddd. Can anyone point me in the 
right direction?



snip

Failed keyboard-interactive for jeroen from 192.0.0.125 port 3627 ssh2
debug3: Trying to reverse map address 192.0.0.125.
debug1: do_cleanup


What version of LFS are you using?  6.0, 6.1?  In particular, what 
version of Glibc?  2.3.4?  I would guess that the problem is with a bug 
in glibc because the same thing happened to me (and many others on this 
list).  Take a look at this bug 
http://blfs-bugs.linuxfromscratch.org/show_bug.cgi?id=1534 .


If you're using glibc-2.3.4, then you there's a couple solutions.
1. install -d /var/lib/sshd/lib
2. Patch glibc with the patch from here 
http://linuxfromscratch.org/pipermail/lfs-dev/2005-October/053692.html 
and rebuild.


Obviously, the first one is a lot easier.  The second one would actually 
get rid of the bug in glibc, but then you'd have to reinstall glibc, and 
that might not be fun if you're not experienced.


Try that and see if it helps.  Incidentally, does anyone know why none 
of this information appears on the LFS Errata page?


--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: openssh closes connection after username is sent

2005-10-26 Thread Jeroen Bruinink
The putty configuration is OK.  I also just tested ssh localhost on 
another terminal on the server and I get the same output.
I have also changed the expiration date of my account to 2029-10-26, so 
that's not it either.


Thanks anyway for the help!

- Original Message - 
From: Luca Dionisi [EMAIL PROTECTED]

To: BLFS Support List blfs-support@linuxfromscratch.org
Sent: Wednesday, October 26, 2005 3:46 PM
Subject: Re: openssh closes connection after username is sent


maybe a problem with your putty configuration.
verify that in Connection-SSH-Auth you have selected the check box
keyboard-interactive.

let me know!

Luca
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


RE: openssh closes connection after username is sent

2005-10-26 Thread David Fix
 Not everybody builds SVN.

Bah!  Yellowbellies!

Dave  ;)

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page