TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: CHRIS ELVIDGE
from: CHRIS ELVIDGE
date: 2017-10-08 10:22:00
subject: Re: OSMC SSH problem

On 08/10/2017 09:46 am, Chris Elvidge wrote:
> Hi All,
>
I seem to have cured it. /etc/pam.d/sshd contained:

# Print the message of the day upon successful login.
# This includes a dynamically generated part from /run/motd.dynamic
# and a static (admin-editable) part from /etc/motd.
session    optional     pam_motd.so  motd=/run/motd.dynamic
session    optional     pam_motd.so noupdate

# Print the status of the user's mailbox upon successful login.
session    optional     pam_mail.so standard noenv # [1]

After commenting the 3 lines out, ssh works again.

Cheers

--

Chris Elvidge, England

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.