<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Double motd and last login</title>
	<atom:link href="http://www.devhands.com/2008/10/double-motd-and-last-login/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devhands.com/2008/10/double-motd-and-last-login/</link>
	<description>Inspired by consistent circumstances</description>
	<lastBuildDate>Tue, 08 Nov 2011 16:04:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Aleksandr Tsertkov</title>
		<link>http://www.devhands.com/2008/10/double-motd-and-last-login/comment-page-1/#comment-17113</link>
		<dc:creator>Aleksandr Tsertkov</dc:creator>
		<pubDate>Tue, 11 Jan 2011 19:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=102#comment-17113</guid>
		<description>long holidays. cleaning up now, sorry.</description>
		<content:encoded><![CDATA[<p>long holidays. cleaning up now, sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GigaHooker</title>
		<link>http://www.devhands.com/2008/10/double-motd-and-last-login/comment-page-1/#comment-16999</link>
		<dc:creator>GigaHooker</dc:creator>
		<pubDate>Thu, 06 Jan 2011 21:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=102#comment-16999</guid>
		<description>So lot of spam.. WHY?! 
Moderator, WTF??????</description>
		<content:encoded><![CDATA[<p>So lot of spam.. WHY?!<br />
Moderator, WTF??????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ben K</title>
		<link>http://www.devhands.com/2008/10/double-motd-and-last-login/comment-page-1/#comment-55</link>
		<dc:creator>ben K</dc:creator>
		<pubDate>Wed, 03 Dec 2008 02:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=102#comment-55</guid>
		<description>Nolan, thanks for pointing this out; it&#039;s an even better (and simpler) solution.  I&#039;m surprised I didn&#039;t read through the rest of sshd_config and pay attention to the UsePAM setting!

Thanks.</description>
		<content:encoded><![CDATA[<p>Nolan, thanks for pointing this out; it&#8217;s an even better (and simpler) solution.  I&#8217;m surprised I didn&#8217;t read through the rest of sshd_config and pay attention to the UsePAM setting!</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexandr Chertkov</title>
		<link>http://www.devhands.com/2008/10/double-motd-and-last-login/comment-page-1/#comment-54</link>
		<dc:creator>Alexandr Chertkov</dc:creator>
		<pubDate>Tue, 02 Dec 2008 09:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=102#comment-54</guid>
		<description>Thats a good point, Nolan!</description>
		<content:encoded><![CDATA[<p>Thats a good point, Nolan!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nolan Eakins</title>
		<link>http://www.devhands.com/2008/10/double-motd-and-last-login/comment-page-1/#comment-53</link>
		<dc:creator>Nolan Eakins</dc:creator>
		<pubDate>Tue, 02 Dec 2008 02:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=102#comment-53</guid>
		<description>Thanks for this. After reading this, I toggled a few settings to see what they did. Setting SSHD&#039;s UsePAM option to &quot;no&quot; also fixed this issue for me along w/ the other possible fixes.</description>
		<content:encoded><![CDATA[<p>Thanks for this. After reading this, I toggled a few settings to see what they did. Setting SSHD&#8217;s UsePAM option to &#8220;no&#8221; also fixed this issue for me along w/ the other possible fixes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ben K</title>
		<link>http://www.devhands.com/2008/10/double-motd-and-last-login/comment-page-1/#comment-51</link>
		<dc:creator>ben K</dc:creator>
		<pubDate>Fri, 28 Nov 2008 00:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=102#comment-51</guid>
		<description>Thanks, this is what I&#039;ve now done (more or less).  I commented out the lastlog, motd and mail modules in /etc/pam/system-login (which is included from system-remote-login which is included from sshd).

Maybe a more proper solution though would be to edit /etc/pam/sshd directly as you suggest, so as not to inadvertently cripple anything else using the system-login method...</description>
		<content:encoded><![CDATA[<p>Thanks, this is what I&#8217;ve now done (more or less).  I commented out the lastlog, motd and mail modules in /etc/pam/system-login (which is included from system-remote-login which is included from sshd).</p>
<p>Maybe a more proper solution though would be to edit /etc/pam/sshd directly as you suggest, so as not to inadvertently cripple anything else using the system-login method&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexandr Chertkov</title>
		<link>http://www.devhands.com/2008/10/double-motd-and-last-login/comment-page-1/#comment-30</link>
		<dc:creator>Alexandr Chertkov</dc:creator>
		<pubDate>Sat, 15 Nov 2008 09:48:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=102#comment-30</guid>
		<description>It looks that ssh does not have any configuration option to disable lastlog logging. Though you can overwrite &quot;session&quot; pam.d rules for ssh in /etc/pam.d/sshd file, remove pam_lastlog.so and pam_motd.so lines and enable PrintMotd and PrintLastLog in /etc/sshd_config.

For example in my case I got following pam.d/sshd:
&lt;pre lang=&quot;bash&quot;&gt;
auth       include      system-remote-login
account    include      system-remote-login
password   include      system-remote-login

session    required     pam_env.so
session    include      system-auth
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>It looks that ssh does not have any configuration option to disable lastlog logging. Though you can overwrite &#8220;session&#8221; pam.d rules for ssh in /etc/pam.d/sshd file, remove pam_lastlog.so and pam_motd.so lines and enable PrintMotd and PrintLastLog in /etc/sshd_config.</p>
<p>For example in my case I got following pam.d/sshd:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">auth       include      system-remote-login
account    include      system-remote-login
password   include      system-remote-login
&nbsp;
session    required     pam_env.so
session    include      system-auth</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: ben K</title>
		<link>http://www.devhands.com/2008/10/double-motd-and-last-login/comment-page-1/#comment-27</link>
		<dc:creator>ben K</dc:creator>
		<pubDate>Fri, 14 Nov 2008 22:01:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=102#comment-27</guid>
		<description>Thanks too; this addresses the exact issue I was seeking by a google search for &quot;gentoo ssh double login&quot;!

I&#039;ve disabled the params in the ssh config as you suggest, and it suppresses the double motd.  However, there are still double entries in the &#039;last&#039; log (one for &#039;ssh&#039;, and one for the &#039;pts/X&#039;).  The &#039;ssh&#039; entries didn&#039;t used to show up before the upgrade.  How can I remove the redundant logging?

ben</description>
		<content:encoded><![CDATA[<p>Thanks too; this addresses the exact issue I was seeking by a google search for &#8220;gentoo ssh double login&#8221;!</p>
<p>I&#8217;ve disabled the params in the ssh config as you suggest, and it suppresses the double motd.  However, there are still double entries in the &#8216;last&#8217; log (one for &#8216;ssh&#8217;, and one for the &#8216;pts/X&#8217;).  The &#8216;ssh&#8217; entries didn&#8217;t used to show up before the upgrade.  How can I remove the redundant logging?</p>
<p>ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ferran</title>
		<link>http://www.devhands.com/2008/10/double-motd-and-last-login/comment-page-1/#comment-20</link>
		<dc:creator>Ferran</dc:creator>
		<pubDate>Wed, 12 Nov 2008 13:01:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=102#comment-20</guid>
		<description>This issue was on my system after recovering /etc from a backup and re-emerging system packages and i was searching around like a fool; thank you!</description>
		<content:encoded><![CDATA[<p>This issue was on my system after recovering /etc from a backup and re-emerging system packages and i was searching around like a fool; thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sascha W.</title>
		<link>http://www.devhands.com/2008/10/double-motd-and-last-login/comment-page-1/#comment-18</link>
		<dc:creator>Sascha W.</dc:creator>
		<pubDate>Tue, 11 Nov 2008 18:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=102#comment-18</guid>
		<description>Very useful.
Thank You.</description>
		<content:encoded><![CDATA[<p>Very useful.<br />
Thank You.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

