This command will output SSH banners from the server as pseudo-terminal is not allocated.
#!/bin/bash
ssh <user>@<server> << EOF
echo 'hi A'
EOF
In order to remove the banner, we can either change the command as follows:
#!/bin/bash
ssh <user>@<server> 'exec bash' << EOF
echo 'hi A'
EOF
or easiest way is
touch ~/.hushlogin