<?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>TechniTip.Net &#187; Prompt</title> <atom:link href="http://technitip.net/tag/prompt/feed" rel="self" type="application/rss+xml" /><link>http://technitip.net</link> <description>TechniTip.Net - Useful tips regarding technical stuff for things like Linux, MySQL, Apache, PHP, Linux Server, iPhone and more.</description> <lastBuildDate>Sun, 05 Sep 2010 09:32:08 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <image><link>http://technitip.net</link> <url>http://technitip.net/wp-content/plugins/maxblogpress-favicon/icons/favicon-66.ico</url><title>TechniTip.Net</title> </image> <item><title>Bash Prompt too long?</title><link>http://technitip.net/bash-prompt-too-long</link> <comments>http://technitip.net/bash-prompt-too-long#comments</comments> <pubDate>Tue, 05 May 2009 20:46:58 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Bash]]></category> <category><![CDATA[Prompt]]></category> <category><![CDATA[Putty]]></category> <category><![CDATA[too long]]></category> <category><![CDATA[xterm]]></category><guid isPermaLink="false">http://technitip.net/?p=1073</guid> <description><![CDATA[People often using Putty, xterm or any other Linux test based console will probably now this annoying issue: Changing into a deeper directory structure will create an incredible long bash prompt For me it was quite annoying to have the prompt sometimes wider than the terminal window. In Debian standard configuration this is the case. [...]<div style="clear: both;"> <strong>Related posts:</strong><ol><li><a href='http://technitip.net/putty-ssh-login-without-password-prompt' rel='bookmark' title='Permanent Link: PuTTY SSH Login Without Password Prompt'>PuTTY SSH Login Without Password Prompt</a></li><li><a href='http://technitip.net/make-vim-nice-looking' rel='bookmark' title='Permanent Link: Make VIM Nice Looking'>Make VIM Nice Looking</a></li><li><a href='http://technitip.net/ftp-with-resume' rel='bookmark' title='Permanent Link: FTP with Resume'>FTP with Resume</a></li></ol></div>]]></description> <content:encoded><![CDATA[<p>People often using Putty, xterm or any other Linux test based console will probably now this annoying issue:</p><ul><li>Changing into a deeper directory structure will create an incredible long bash prompt</li></ul><p>For me it was quite annoying to have the prompt sometimes wider than the terminal window. In Debian standard configuration this is the case. So I decided to shorten the prompt.</p><p>I kept my prompt very simple, the only thing you have to do is to add the following lines to your ~/.bashrc</p><p><code>export PS1="[\u@\h \W]\\$ "<br /> export PS2="&gt; "</code></p><p>Make sure to add it at the end of your .bashrc file in your home directory. Otherwise it may be overwritten by other prompt definitions in your .bashrc.</p><p><strong>Before</strong></p><p><code>harry@h1096660:/usr/local/include/ffmpeg$</code></p><p><strong>After</strong></p><p><code>[harry@h1096660 ffmpeg]$</code></p><p>Better <img src='http://technitip.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p><strong>Further links and examples</strong></p><ul><li><a title="Bash Prompt HOWTO" href="http://tldp.org/HOWTO/Bash-Prompt-HOWTO/" target="_blank">Bash Prompt HOWTO</a></li><li><a title="Bash Prompts" href="http://www.gilesorr.com/bashprompt/" target="_blank">Bash Prompts</a></li></ul><div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fbash-prompt-too-long&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 50px;"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol><li><a href='http://technitip.net/putty-ssh-login-without-password-prompt' rel='bookmark' title='Permanent Link: PuTTY SSH Login Without Password Prompt'>PuTTY SSH Login Without Password Prompt</a></li><li><a href='http://technitip.net/make-vim-nice-looking' rel='bookmark' title='Permanent Link: Make VIM Nice Looking'>Make VIM Nice Looking</a></li><li><a href='http://technitip.net/ftp-with-resume' rel='bookmark' title='Permanent Link: FTP with Resume'>FTP with Resume</a></li></ol></p></div>]]></content:encoded> <wfw:commentRss>http://technitip.net/bash-prompt-too-long/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>PuTTY SSH Login Without Password Prompt</title><link>http://technitip.net/putty-ssh-login-without-password-prompt</link> <comments>http://technitip.net/putty-ssh-login-without-password-prompt#comments</comments> <pubDate>Sat, 21 Feb 2009 18:45:38 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[authorized_keys]]></category> <category><![CDATA[Login]]></category> <category><![CDATA[Password]]></category> <category><![CDATA[Prompt]]></category> <category><![CDATA[Putty]]></category> <category><![CDATA[RSA]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[Without]]></category><guid isPermaLink="false">http://technitip.net/?p=666</guid> <description><![CDATA[Annoyed of typing login passwords? Your desktop is running with Windows and you often need to connect remote servers using SSH then you will already know PuTTY. You will also know that it&#8217;s getting frustrating to enter the passoword every time. There is a simple way to login to remote machines using RSA/DAS keys. What [...]<div style="clear: both;"> <strong>Related posts:</strong><ol><li><a href='http://technitip.net/ssh-client-for-the-iphone' rel='bookmark' title='Permanent Link: SSH Client for the iPhone'>SSH Client for the iPhone</a></li><li><a href='http://technitip.net/bash-prompt-too-long' rel='bookmark' title='Permanent Link: Bash Prompt too long?'>Bash Prompt too long?</a></li><li><a href='http://technitip.net/continous-ssh-attacks' rel='bookmark' title='Permanent Link: Continous SSH Attacks'>Continous SSH Attacks</a></li></ol></div>]]></description> <content:encoded><![CDATA[<p><strong>Annoyed of typing login passwords?</strong></p><p>Your desktop is running with Windows and you often need to connect remote servers using SSH then you will already know <a title="PuTTY: A Free Telnet/SSH Client" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank">PuTTY</a>. You will also know that it&#8217;s getting frustrating to enter the passoword every time. There is a simple way to login to remote machines using RSA/DAS keys.</p><p><strong>What is needed?</strong></p><p>First of all you will need to download the <a title="Putty.exe download" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">PuTTY.exe</a>. And to generate the keys on your Windows desktop you&#8217;ll need to download  <a title="Putty.exe download" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">PuTTYgen.exe</a> as well.</p><p><strong>Key Generation</strong></p><p>Start PuTTYgen.exe after download and press the Generate button. Now follow the instruction and move the mouse cursor over the desired area. I&#8217;ve used the default parameter [x] SSH-2 RSA with a key length of 1024 bits.</p><p>I leave the Key passphrase empty because I don&#8217;t want to enter any passwords during login.</p><a href="http://technitip.net/wp-content/gallery/test/putty-key-generator-21022009-183726.jpg" title="" class="shutterset_singlepic34" > <img class="ngg-singlepic ngg-left" src="http://technitip.net/wp-content/gallery/cache/34__295x_putty-key-generator-21022009-183726.jpg" alt="putty-key-generator-21022009-183726.jpg" title="putty-key-generator-21022009-183726.jpg" /> </a> <a href="http://technitip.net/wp-content/gallery/test/putty-key-generator-21022009-183824.jpg" title="" class="shutterset_singlepic35" > <img class="ngg-singlepic ngg-right" src="http://technitip.net/wp-content/gallery/cache/35__295x_putty-key-generator-21022009-183824.jpg" alt="putty-key-generator-21022009-183824.jpg" title="putty-key-generator-21022009-183824.jpg" /> </a><p>To have the key later available for other servers use the &#8220;Save public key&#8221; and &#8220;Save private key&#8221; button. My private key is saved as <em>haifisch.ppk</em> and my public key as <em>haifisch</em>. By the way, haifisch is German and means shark.</p><p>Now mark the generated public key, copy it to the clip board and paste it into <em>~/.ssh/authorized_keys</em> file on the remote server of the user you want to login as.</p><a href="http://technitip.net/wp-content/gallery/test/save-private-key-as-21022009-183913.jpg" title="" class="shutterset_singlepic36" > <img class="ngg-singlepic ngg-left" src="http://technitip.net/wp-content/gallery/cache/36__295x_save-private-key-as-21022009-183913.jpg" alt="save-private-key-as-21022009-183913.jpg" title="save-private-key-as-21022009-183913.jpg" /> </a> <a href="http://technitip.net/wp-content/gallery/test/putty-key-generator-21022009-192015.jpg" title="" class="shutterset_singlepic37" > <img class="ngg-singlepic ngg-right" src="http://technitip.net/wp-content/gallery/cache/37__295x_putty-key-generator-21022009-192015.jpg" alt="putty-key-generator-21022009-192015.jpg" title="putty-key-generator-21022009-192015.jpg" /> </a><p><strong>PuTTY Configuration<br /> </strong></p><p>Keys have been generated and stored on the remote server, therefore PuTTYgen can be closed now and the PuTTY.exe is needed now.</p><p>In PuTTY under the item &#8220;Session&#8221; enter the host name of the remote server and connection type SSH. Next choose &#8220;Connection/Data&#8221; and enter the remote user name. Also the previously defined private key is needed, it is given in &#8220;Connection/SSH/Auth&#8221; using the &#8220;Browse&#8221; button. In my case it&#8217;s <em>haifisch.ppk</em>.</p><a href="http://technitip.net/wp-content/gallery/test/putty-configuration-21022009-193323.jpg" title="" class="shutterset_singlepic38" > <img class="ngg-singlepic ngg-left" src="http://technitip.net/wp-content/gallery/cache/38__295x_putty-configuration-21022009-193323.jpg" alt="putty-configuration-21022009-193323.jpg" title="putty-configuration-21022009-193323.jpg" /> </a> <a href="http://technitip.net/wp-content/gallery/test/putty-configuration-21022009-193323.jpg" title="" class="shutterset_singlepic38" > <img class="ngg-singlepic ngg-right" src="http://technitip.net/wp-content/gallery/cache/38__295x_putty-configuration-21022009-193323.jpg" alt="putty-configuration-21022009-193323.jpg" title="putty-configuration-21022009-193323.jpg" /> </a><p>When all settings are done go back to &#8220;Session&#8221;, enter a name for this session and press &#8220;Save&#8221;.</p><p>That&#8217;s it. Try it by double clicking on the saved session.</p><p><strong>Login via Desktop Icon</strong></p><p>If you want to have a desktop icon which opens putty and logs into a remote server generate a file e.g. www.myserver.com.bat with the content:</p><p><code>start C:\temp\putty\putty.exe -load "Session Name in PuTTY"</code></p><p>Now generate a link to this batch file on your desktop and login in by double clicking.</p><div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fputty-ssh-login-without-password-prompt&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 50px;"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol><li><a href='http://technitip.net/ssh-client-for-the-iphone' rel='bookmark' title='Permanent Link: SSH Client for the iPhone'>SSH Client for the iPhone</a></li><li><a href='http://technitip.net/bash-prompt-too-long' rel='bookmark' title='Permanent Link: Bash Prompt too long?'>Bash Prompt too long?</a></li><li><a href='http://technitip.net/continous-ssh-attacks' rel='bookmark' title='Permanent Link: Continous SSH Attacks'>Continous SSH Attacks</a></li></ol></p></div>]]></content:encoded> <wfw:commentRss>http://technitip.net/putty-ssh-login-without-password-prompt/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>