In an earlier post, I showed you how to modify, change, or even disable parts of the big long MOTD (Message of The Day) that you get with default Ubuntu. Admittedly, some of the information is useful at a glance. I have a pretty good pulse on my own Linux servers (since there is only a couple), so I don’t really need or want the messages. So, after a quick Google search I found this post that describes disabling the message for SSH through PAM. It’s pretty simple.
Just edit /etc/pam.d/sshd and comment (using the # sign) the following two lines:
session optional pam_motd.so motd=/run/motd.dynamic noupdate session optional pam_motd.so # 
Save your changes, and you’re done! Now all you see when you SSH in is the last login time. Much faster.