Pages

Monday, September 27, 2010

Keep something called shush quiet


Resyncing my little network including the Pub machine, I realised that my ssh logins were too noisy. eg. I would




>ssh $PUB




to see the following unnecessary chatter




Linux thinkpadt60 2.6.32-5-686 #1 SMP Sat Sep 18 02:14:45 UTC 2010 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No mail.
Last login: Mon Sep 27 19:16:11 2010 from development




The solution is very simple. On the remote machine simply create a .hushlogin file.




>touch ~/.hushlogin




If it doesnt work then check your /etc/login.defs file for the hush settings. Mine are like this:




# If defined, file which inhibits all the usual chatter during the login
# sequence. If a full pathname, then hushed mode will be enabled if the
# user's name or shell are found in the file. If not a full pathname, then
# hushed mode will be enabled if the file exists in the user's home directory.
#
HUSHLOGIN_FILE .hushlogin
#HUSHLOGIN_FILE /etc/hushlogins




--
My Emacs Files At GitHub

No comments:

Post a Comment