I have a fresh installation of OpenSSH. In the /etc/ssh/sshd_config I have the following entry:Banner /etc/issue.netI have restarted the SSH deamon using: sudo /etc/init.d/ssh restart. Now, whenever I try to run ssh user@localhost it works just fine, except it doesn't show the pre-login banner.What can cause this problem?
SSH banner not showing
sshd
Ubuntu 14.04 uses upstart, and /etc/init.d/ssh restart doesn't restart sshd if upstart is running, so sshd isn't recognizing your changes to /etc/ssh/sshd_config. Instead, run this:# restart sshYou can verify that sshd was restarted by running# ps -f -p $(pgrep sshd)or# ps -f -p $(status ssh | awk '{ print $NF }')and checking that the start time (STIME) is more recent than the time you ran the command to restart it.