OpenSSH Key Exchange Issues
by Jon Wilder from LinuxQuestions.org on (#55K85)
Hi all. I recently did a LFS Systemd build on a Raspberry Pi 3B following the Development LFS systemd book. The system built beautifully (although I had to make a patch for glibc with gcc-10.1.0) and the system boots just fine. So I then moved onto Beyond LFS. First thing's first...get OpenSSH built and working.
In Beyond LFS, I followed the build instructions for OpenSSH-8.3p1. I first built it without PAM support.
In trying to instantiate an SSH instance, be it through PuTTY or another Linux machine, the host side immediately closes the connection before it even prompts me for login credentials. This is usually the point where a key exchange is performed upon first connection from a client.
In checking sysctl status sshd, there are key exchange errors present.
So I then built and installed PAM, then rebuilt Shadow and OpenSSH with the --with-pam switch in the configure script. I also updated /etc/ssh/sshd_config PAM setting to UsePAM yes.
Same thing...I just cannot seem to get a valid key exchange. Have even tried regenerating the host keys to no avail.
From the Pi, I can ssh into other machines all day long with no issue.
Can someone provide me with a step that I'm missing here?


In Beyond LFS, I followed the build instructions for OpenSSH-8.3p1. I first built it without PAM support.
In trying to instantiate an SSH instance, be it through PuTTY or another Linux machine, the host side immediately closes the connection before it even prompts me for login credentials. This is usually the point where a key exchange is performed upon first connection from a client.
In checking sysctl status sshd, there are key exchange errors present.
So I then built and installed PAM, then rebuilt Shadow and OpenSSH with the --with-pam switch in the configure script. I also updated /etc/ssh/sshd_config PAM setting to UsePAM yes.
Same thing...I just cannot seem to get a valid key exchange. Have even tried regenerating the host keys to no avail.
From the Pi, I can ssh into other machines all day long with no issue.
Can someone provide me with a step that I'm missing here?