title: how to read my ssh warning banner via bash script
body: <pre><code>#!/bin/bash
  if read -ra banner &lt; &lt;(LANG=C sshd -T | grep banner 2&gt;/dev/null)
  then
          printf &quot;$banner&quot;
  else
          printf 'banner not set\n'
  fi
  </code></pre>
  <p>How can i fix my bash script to read my ssh warning banner. new to bash scripting and isn't sure what I am doing wrong</p>