mridgers / clink

Bash's powerful command line editing in cmd.exe
mridgers.github.io/clink
GNU General Public License v3.0
3.19k stars 283 forks source link

Duplicated MOTD #526

Open eivindhammers opened 4 years ago

eivindhammers commented 4 years ago

I almost always get a duplicated MOTD when logging in via SSH, while other times the message is only printed once. I'm connecting to Ubuntu 18.04 using Clink 0.4.9.

This happens even if I comment out the following lines in /etc/pam.d/sshd:

session    optional     pam_motd.so  motd=/run/motd.dynamic
session    optional     pam_motd.so  noupdate

and set PrintMotd yes in /etc/ssh/sshd_config, or vice versa. It also doesn't matter if I include or exclude the contents in /etc/update-motd.d in the MOTD (i.e. only print the "Last login:", message).

However, the message in /run/motd.dynamic is not duplicated. It's as if that file is printed twice on login.

I previously posted this on Stackexchange, but it doesn't replicate in Cygwin so I figured it must be a Clink problem. I've tried suggestions given in other threads on SE, but usually duplicates seem to be the result of having MOTD activated in both SSH and PAM at the same time, which is not the case here.

khobbits commented 4 years ago

Ran into this issue, after updating cmder (which uses clink), did you work out what this was?

eivindhammers commented 4 years ago

Ran into this issue, after updating cmder (which uses clink), did you work out what this was?

Not yet.