LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-24-2020, 10:29 PM   #1
Jon Wilder
LQ Newbie
 
Registered: Jul 2015
Posts: 17

Rep: Reputation: Disabled
Beyond LFS OpenSSH Issue


I just finished a LFS Systemd build on a Raspberry Pi. Following Beyond LFS OpenSSH installation, I built with PAM support (I've already installed PAM and rebuild Shadow, plus set "UsePAM" in /etc/ssh/sshd_config to yes).

From PiLFS, I can ssh into other machines. However, I'm having an issue ssh'ing into the LFS machine. Using PuTTY, I ssh to the Pi. It asks for my login name.

As soon as I enter my login name, I get "Remote side unexpectedly closed the connection".

Has anyone had this issue before?
 
Old 04-25-2020, 02:30 PM   #2
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
As a matter of fact I did have that exact same problem. I didn't realize it right away, because I seldom ssh into this box. When I noticed, I recompiled it and it worked after that. I don't follow the BLFS procedure and compiled openssh as one of the first things after getting LFS booting. I think it's because I didn't use --with-md5-passwords. I don't use PAM (hate it).

I compiled mine like this (change yours to --with-pam):

Code:
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords --without-pam --with-privsep-user=sshd --with-privsep-path=/var/lib/sshd --with-libedit
You did remember to create the user and group, sshd?

P.S. It could have also been the version of openssh that didn't compile right. When I recompiled it, there was a newer one, openssh 8.2p1 and I used that.

Last edited by TheRealGrogan; 04-25-2020 at 02:35 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: OpenSSH 7.5 Has Security Fixes, Removes OpenSSL 1.0 Support for Portable OpenSSH LXer Syndicated Linux News 0 03-21-2017 04:11 PM
How to convert openssh keys to openssh tectia format LittleMaster Linux - Server 1 11-17-2012 07:39 AM
LXer: Why a Distro-Provided OpenSSH is Better than a Third-Party OpenSSH LXer Syndicated Linux News 0 02-02-2011 07:50 AM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
LFS 4.0 and Beyond jpbarto LinuxQuestions.org Member Success Stories 0 04-03-2003 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration