<?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: Use Your SSH Client To Help Prevent Stupid Mistakes</title>
	<atom:link href="http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/feed/" rel="self" type="application/rss+xml" />
	<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/</link>
	<description>Linux.  GNU.  Freedom.</description>
	<lastBuildDate>Fri, 17 May 2013 20:46:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6-beta2-24176</generator>
	<item>
		<title>By: foo</title>
		<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/#comment-115946</link>
		<dc:creator>foo</dc:creator>
		<pubDate>Sun, 11 Sep 2011 22:10:12 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2007#comment-115946</guid>
		<description><![CDATA[Probably you want this too:

http://packages.debian.org/sid/molly-guard]]></description>
		<content:encoded><![CDATA[<p>Probably you want this too:</p>
<p><a href="http://packages.debian.org/sid/molly-guard" rel="nofollow">http://packages.debian.org/sid/molly-guard</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Tansom</title>
		<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/#comment-115940</link>
		<dc:creator>Paul Tansom</dc:creator>
		<pubDate>Wed, 07 Sep 2011 15:17:43 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2007#comment-115940</guid>
		<description><![CDATA[OK, after some experimentation I found I needed to use:

echo -e &#039;33[31mPRODUCTION33[39m&#039;

instead of the print command on my Ubuntu installs (Bash), but it seems there is little point using it anyway as it all happens in a flash before switching to screen/byobu so you barely see it!

Oh well, time to take a look at the PS1 option now I&#039;ve started playing :)]]></description>
		<content:encoded><![CDATA[<p>OK, after some experimentation I found I needed to use:</p>
<p>echo -e &#8217;33[31mPRODUCTION33[39m&#8217;</p>
<p>instead of the print command on my Ubuntu installs (Bash), but it seems there is little point using it anyway as it all happens in a flash before switching to screen/byobu so you barely see it!</p>
<p>Oh well, time to take a look at the PS1 option now I&#8217;ve started playing <img src='http://pthree.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Tansom</title>
		<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/#comment-115939</link>
		<dc:creator>Paul Tansom</dc:creator>
		<pubDate>Wed, 07 Sep 2011 13:44:22 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2007#comment-115939</guid>
		<description><![CDATA[I&#039;ve used figlet to produce a large reminder of which machine I&#039;ve logged into using the motd for some years, although that doesn&#039;t help much if you&#039;ve left screen running! I&#039;ll have to take a closer look at this, although I do like the idea of the colour coded PS1 too. Time for a bit of playing I think :)]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve used figlet to produce a large reminder of which machine I&#8217;ve logged into using the motd for some years, although that doesn&#8217;t help much if you&#8217;ve left screen running! I&#8217;ll have to take a closer look at this, although I do like the idea of the colour coded PS1 too. Time for a bit of playing I think <img src='http://pthree.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Toponce</title>
		<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/#comment-115938</link>
		<dc:creator>Aaron Toponce</dc:creator>
		<pubDate>Wed, 07 Sep 2011 13:37:54 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2007#comment-115938</guid>
		<description><![CDATA[It&#039;s not about colored PS1 versus non-colored PS1. My root ZSH prompt is red, and it doesn&#039;t matter how many times I login as root, I always know I&#039;m root, because of the red prompt.

However, what your eyes get used to, and your mind starts blocking out, is information. Adding &quot;production&quot; or &quot;root&quot; text to your prompt starts getting ignored quickly. However, with using LocalCommand, you can create an alert that makes you immediately aware of where you are.

So, again, it&#039;s not about PS1 versus LocalCommand. It&#039;s about making the alert visible, and in your face, so you always know where you are.]]></description>
		<content:encoded><![CDATA[<p>It&#8217;s not about colored PS1 versus non-colored PS1. My root ZSH prompt is red, and it doesn&#8217;t matter how many times I login as root, I always know I&#8217;m root, because of the red prompt.</p>
<p>However, what your eyes get used to, and your mind starts blocking out, is information. Adding &#8220;production&#8221; or &#8220;root&#8221; text to your prompt starts getting ignored quickly. However, with using LocalCommand, you can create an alert that makes you immediately aware of where you are.</p>
<p>So, again, it&#8217;s not about PS1 versus LocalCommand. It&#8217;s about making the alert visible, and in your face, so you always know where you are.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danilo</title>
		<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/#comment-115937</link>
		<dc:creator>Danilo</dc:creator>
		<pubDate>Wed, 07 Sep 2011 11:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2007#comment-115937</guid>
		<description><![CDATA[I&#039;m also using $PS1 + colors. I even use them on my local machine, green means normal user and red means root. Red immediately catches your attention, so you won&#039;t forget that you&#039;re using root permissions. Could also be used on production machines.

The main benefit of this vs. LocalCommand is that with the latter option the warning only appears once and can&#039;t be seen anymore after issueing a few commands, while the $PS1 approach is always seen.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m also using $PS1 + colors. I even use them on my local machine, green means normal user and red means root. Red immediately catches your attention, so you won&#8217;t forget that you&#8217;re using root permissions. Could also be used on production machines.</p>
<p>The main benefit of this vs. LocalCommand is that with the latter option the warning only appears once and can&#8217;t be seen anymore after issueing a few commands, while the $PS1 approach is always seen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/#comment-115936</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Wed, 07 Sep 2011 08:55:09 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2007#comment-115936</guid>
		<description><![CDATA[I would like to voice my support for colour–coded PS1 as well. All my local desktops use green, whereas servers use a combination of yellow or blue depending on where they are.

My brain is trained to know that &quot;green is good, go ahead and apt-get install quake3&quot;, and &quot;gold or blue, do you &lt;em&gt;really&lt;/em&gt; want to type that quickly?&quot;.]]></description>
		<content:encoded><![CDATA[<p>I would like to voice my support for colour–coded PS1 as well. All my local desktops use green, whereas servers use a combination of yellow or blue depending on where they are.</p>
<p>My brain is trained to know that &#8220;green is good, go ahead and apt-get install quake3&#8243;, and &#8220;gold or blue, do you <em>really</em> want to type that quickly?&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: grin</title>
		<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/#comment-115935</link>
		<dc:creator>grin</dc:creator>
		<pubDate>Wed, 07 Sep 2011 07:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2007#comment-115935</guid>
		<description><![CDATA[Actually PS1+color coding is good. Color coding is generally good because your eyes get used to it and it&#039;s immediately obvious that you see a different color. PS1 in /etc/profiles or .shellrc helps everyone who uses the machine to see the point, not just me.]]></description>
		<content:encoded><![CDATA[<p>Actually PS1+color coding is good. Color coding is generally good because your eyes get used to it and it&#8217;s immediately obvious that you see a different color. PS1 in /etc/profiles or .shellrc helps everyone who uses the machine to see the point, not just me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lonnie Olson</title>
		<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/#comment-115933</link>
		<dc:creator>Lonnie Olson</dc:creator>
		<pubDate>Tue, 06 Sep 2011 22:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2007#comment-115933</guid>
		<description><![CDATA[That is a really cool idea.  I&#039;ve never thought of anything useful to do with LocalCommand.  Thanks.

My method to achieve that same goal of identifying the remote end very clearly is to use figlet (http://www.figlet.org/) to display a big banner of the hostname, and perhaps a (normal text) description of the machine.  Then add that to the /etc/motd]]></description>
		<content:encoded><![CDATA[<p>That is a really cool idea.  I&#8217;ve never thought of anything useful to do with LocalCommand.  Thanks.</p>
<p>My method to achieve that same goal of identifying the remote end very clearly is to use figlet (<a href="http://www.figlet.org/" rel="nofollow">http://www.figlet.org/</a>) to display a big banner of the hostname, and perhaps a (normal text) description of the machine.  Then add that to the /etc/motd</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Toponce</title>
		<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/#comment-115932</link>
		<dc:creator>Aaron Toponce</dc:creator>
		<pubDate>Tue, 06 Sep 2011 21:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2007#comment-115932</guid>
		<description><![CDATA[I&#039;m familiar with $PS1. Sure, you can change your prompt to give you more information. However, with prompts, they quickly become backgrounded noise, and you no longer notice the information. Something like this is yet another way to grab your attention, and let you know where you are.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m familiar with $PS1. Sure, you can change your prompt to give you more information. However, with prompts, they quickly become backgrounded noise, and you no longer notice the information. Something like this is yet another way to grab your attention, and let you know where you are.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Volans</title>
		<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/#comment-115931</link>
		<dc:creator>Volans</dc:creator>
		<pubDate>Tue, 06 Sep 2011 19:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2007#comment-115931</guid>
		<description><![CDATA[I&#039;m using coloured PS1 on the remote hosts for some years now.

I think this approach is better because has the advantage that the prompt is always visible also after many screens of commands and that can be used for any user, regardless of their SSH client configuration.

Just configure it in one place (two to be precise, /etc/skel/.bashrc and /root/.bashrc, as well as the .bashrc of any existing user) and it&#039;s done.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m using coloured PS1 on the remote hosts for some years now.</p>
<p>I think this approach is better because has the advantage that the prompt is always visible also after many screens of commands and that can be used for any user, regardless of their SSH client configuration.</p>
<p>Just configure it in one place (two to be precise, /etc/skel/.bashrc and /root/.bashrc, as well as the .bashrc of any existing user) and it&#8217;s done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Toponce</title>
		<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/#comment-115930</link>
		<dc:creator>Aaron Toponce</dc:creator>
		<pubDate>Tue, 06 Sep 2011 16:57:38 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2007#comment-115930</guid>
		<description><![CDATA[Just tried it. Doesn&#039;t work. As the manual states, LocalCommand does not have access to the session that ssh(1) spawned. I think this may be as good as it gets. Of course, you could add newlines, and other things to make it blatantly obvious that you&#039;re in a production machine.]]></description>
		<content:encoded><![CDATA[<p>Just tried it. Doesn&#8217;t work. As the manual states, LocalCommand does not have access to the session that ssh(1) spawned. I think this may be as good as it gets. Of course, you could add newlines, and other things to make it blatantly obvious that you&#8217;re in a production machine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Toponce</title>
		<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/#comment-115929</link>
		<dc:creator>Aaron Toponce</dc:creator>
		<pubDate>Tue, 06 Sep 2011 16:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2007#comment-115929</guid>
		<description><![CDATA[That&#039;s actually not a bad idea. But, I&#039;m curious if $PS1 will carry through the connection. I&#039;m not sure that it will, but it&#039;s worth a shot.]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s actually not a bad idea. But, I&#8217;m curious if $PS1 will carry through the connection. I&#8217;m not sure that it will, but it&#8217;s worth a shot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christer Edwards</title>
		<link>http://pthree.org/2011/09/06/use-your-ssh-client-to-help-prevent-stupid-mistakes/#comment-115928</link>
		<dc:creator>Christer Edwards</dc:creator>
		<pubDate>Tue, 06 Sep 2011 16:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2007#comment-115928</guid>
		<description><![CDATA[What about using the LocalCommand to export a variable, like maybe redefine $PS1 to use your color coding? That way it&#039;s always displayed.]]></description>
		<content:encoded><![CDATA[<p>What about using the LocalCommand to export a variable, like maybe redefine $PS1 to use your color coding? That way it&#8217;s always displayed.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
