Wednesday, January 11, 2012

Stop That Banner!

I do a lot of repetitive tasks on many different machines, and I use ssh to get me there. One thing that annoyed me the most was the long banner message taking up most of my console window. The banner is a requirement for us, so I cannot simply remove it on the server side. We use Red Hat Enterprise Linux and Solaris 10, and the following is what I use to stop the banner from displaying:

If you are on Linux or Solaris you first need to have the .hushlogin file in your home directory on the machine that you are ssh'ing into: by running the following command, "touch .hushlogin", you will banner displaying on Solaris, but not on Linux. On Linux, this will stop the "Last login..." message. To stop the banner from displaying in Linux, you need to issue the ssh command with the -q switch, "ssh -q [hostname]".

No comments:

Post a Comment