If a connected client with an open shell starts a new session channel and connects it to a shell, the MOTD will be repeated twice in the new shell. It will be repeated 3 times in a third, etc. The number of open shells is not important, only the total number of shells since the start of the session.
What client are you using?
Twisted Conch (http://www.twistedmatrix.com/).
Created attachment 575 [details] Clear loginmsg after fork. Please try this patch.
Yep, works like a charm!
Cool. Is the patch OK for 3.8.1p1?
Comment on attachment 575 [details] Clear loginmsg after fork. OK for 3.8.1p1. Make sure it gets into OpenBSD after the unlock too, if relevant.
Patch applied, thanks for the report. Note that there is currently no equivalent to loginmsg in OpenBSD's sshd.
Mass change of RESOLVED bugs to CLOSED