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:
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.
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
: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.