<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>No Znx! &#187; hushlogin</title>
	<atom:link href="http://znx.no/tag/hushlogin/feed/" rel="self" type="application/rss+xml" />
	<link>http://znx.no</link>
	<description>the pigeons!!!!</description>
	<lastBuildDate>Fri, 21 May 2010 16:05:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>No MOTD</title>
		<link>http://znx.no/2009/02/no-motd/</link>
		<comments>http://znx.no/2009/02/no-motd/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 18:46:44 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[hushlogin]]></category>

		<guid isPermaLink="false">http://znx.no/?p=91</guid>
		<description><![CDATA[I was asked today about how to stop SSH logins from printing the MOTD. This is a common issue when you are running scripts and cron e-mails you the output of the MOTD all the time. Just a little bit annoying! Instead of throwing all the data away you can instead suppress the login MOTD [...]]]></description>
			<content:encoded><![CDATA[<p>I was asked today about how to stop SSH logins from printing the MOTD. This is a common issue when you are running scripts and cron e-mails you the output of the MOTD all the time. Just a little bit annoying! Instead of throwing all the data away you can instead suppress the login MOTD by simply:</p>
<pre>touch ~/.hushlogin</pre>
<p>In remote user&#8217;s directory. Simple!</p>
<p>There is also the SSH banner which doesn&#8217;t get silenced by this method, the trick to get around this is by using:</p>
<pre>ssh -q user@server command</pre>
<p>This isn&#8217;t ideal as it suppresses possible warnings and diagnostic information as well but it is a good workaround. Thanks to <a href="http://www.flukex.com/">FluKex</a> for that!</p>
<p>To remove the MOTD/banner all together from SSH you can edit your <em>sshd_config</em> and alter the line for the MOTD to no, like so:</p>
<pre>#Banner none
PrintMotd no</pre>
<p>Just to say a little more about hushlogin, the file and its naming choice is controlled by the /etc/login.defs file. So if you are a system administrator you could modify the naming of this file or indeed its placement. Secondly as an administrator you may wish to ensure that users don&#8217;t have this ability. The trick here is to alter the login.defs file and make the HUSHLOGIN_FILE a full pathname. Then the contents of this file will be those users that have their MOTD suppressed.</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2009/02/no-motd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
