<?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>Ersin Acar &#187; ubuntu</title>
	<atom:link href="http://ersinacar.com/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://ersinacar.com</link>
	<description>PHP and Web Technologies Freak</description>
	<lastBuildDate>Fri, 06 Jan 2012 14:19:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to change SSH welcome message on linux</title>
		<link>http://ersinacar.com/how-to-change-ssh-welcome-message-on-linux_164.html</link>
		<comments>http://ersinacar.com/how-to-change-ssh-welcome-message-on-linux_164.html#comments</comments>
		<pubDate>Wed, 08 Jul 2009 17:00:57 +0000</pubDate>
		<dc:creator>Ersin Acar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[kenny]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=164</guid>
		<description><![CDATA[Every time I connect to my home server through my ssh client, I receive the same message and I’m getting bored of seeing it, so I decided to change the message to something else. Here’s the message that I get every time: Last login: Wed Jul 8 16:35:28 2009 from 192.168.2.3 Linux localhost 2.6.20-15-server #2 [...]]]></description>
			<content:encoded><![CDATA[<p>Every time I connect to my home server through my ssh client, I receive the same message and I’m getting bored of seeing it, so I decided to change the message to something else.</p>
<p>Here’s the message that I get every time:<br />
<span id="more-164"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Last <span style="color: #c20cb9; font-weight: bold;">login</span>: Wed Jul  <span style="color: #000000;">8</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">35</span>:<span style="color: #000000;">28</span> <span style="color: #000000;">2009</span> from 192.168.2.3
Linux localhost 2.6.20-<span style="color: #000000;">15</span>-server <span style="color: #666666; font-style: italic;">#2 SMP Sun Apr 15 07:41:34 UTC 2007 i686</span>
&nbsp;
The programs included with the Ubuntu system are <span style="color: #c20cb9; font-weight: bold;">free</span> software;
the exact distribution terms <span style="color: #000000; font-weight: bold;">for</span> each program are described <span style="color: #000000; font-weight: bold;">in</span> the
individual files <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/*/</span>copyright.
&nbsp;
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
root<span style="color: #000000; font-weight: bold;">@</span>localhost:~<span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>Changing this message requires editing two different files. The first three sections can be modified by editing the following file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">  <span style="color: #c20cb9; font-weight: bold;">nano</span>  <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>motd</pre></div></div>

<p>This file contains the linux build number as well as the Ubuntu warranty message. I don’t find this particularly useful, so I removed all of it and replaced it with my own message.</p>
<p>To disable the last login message (which I don’t recommend doing), you will need to edit the following file in sudo mode:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">  <span style="color: #c20cb9; font-weight: bold;">nano</span>  <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>sshd_config</pre></div></div>

<p>Find this line in the file and change the yes to no as shown:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">    PrintLastLog no</pre></div></div>

<p>Now when you login, you’ll get a blank prompt, although I wouldn’t necessarily recommend it because it’s useful to see the last login to the system for security reasons. This is my prompt now:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Last <span style="color: #c20cb9; font-weight: bold;">login</span>: Wed Jul  <span style="color: #000000;">8</span> <span style="color: #000000;">17</span>:05:<span style="color: #000000;">12</span> <span style="color: #000000;">2009</span> from 192.168.2.3
OMG<span style="color: #000000; font-weight: bold;">!!</span> You killed kenny<span style="color: #000000; font-weight: bold;">!</span> You BASTARD<span style="color: #000000; font-weight: bold;">!</span>
&nbsp;
             _..-<span style="color: #ff0000;">&quot;&quot;</span><span style="color: #ff0000;">&quot;&quot;</span>-.._
           .<span style="color: #ff0000;">'            '</span>.
          <span style="color: #000000; font-weight: bold;">/</span>     _...._     \
         <span style="color: #000000; font-weight: bold;">/</span>  ,=<span style="color: #ff0000;">&quot;;_.''._;&quot;</span>=,  \
        ;  <span style="color: #000000; font-weight: bold;">/</span>  <span style="color: #000000; font-weight: bold;">/</span>  <span style="color: #000000; font-weight: bold;">`</span>\<span style="color: #000000; font-weight: bold;">/`</span>  \  \  ;
        <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #ff0000;">'/\'</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>
        <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>  \..<span style="color: #ff0000;">'  '</span>..<span style="color: #000000; font-weight: bold;">/</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>
         ;  \  \      <span style="color: #000000; font-weight: bold;">/</span> .<span style="color: #ff0000;">'  ;
          \  '</span>._-.__.-_.<span style="color: #ff0000;">'  /
          /'</span>.   <span style="color: #000000; font-weight: bold;">``|</span>\<span style="color: #000000; font-weight: bold;">``</span>   .<span style="color: #ff0000;">'\
         /   `'</span>-..<span style="color: #000000; font-weight: bold;">/</span>.<span style="color: #7a0874; font-weight: bold;">&#41;</span>.-<span style="color: #ff0000;">'`   \
        |_                  _|
       (  \                /  )
        '</span>-<span style="color: #000000; font-weight: bold;">/</span>                \-<span style="color: #ff0000;">'
          |________________|
          (________.________)
&nbsp;
root@localhost:~#</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/how-to-change-ssh-welcome-message-on-linux_164.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

