<?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>Khalil Majdalawi&#039;s Blog &#187; ssh</title>
	<atom:link href="http://dev3k.com/blog/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev3k.com/blog</link>
	<description>Web development,Technology,Games and more...</description>
	<lastBuildDate>Mon, 30 Jan 2012 09:57:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Lazy SSH login</title>
		<link>http://dev3k.com/blog/2009/02/lazy-ssh-login/</link>
		<comments>http://dev3k.com/blog/2009/02/lazy-ssh-login/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 09:03:54 +0000</pubDate>
		<dc:creator>Khalil Majdalawi</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://dev3k.com/blog/?p=101</guid>
		<description><![CDATA[In my work i use SSH a lot , and some times i find myself so lazy to enter password every time or write the whole command , so here is a time savior technique as we know ssh don't accept password to be written it something called "interactive keyboard password authentication" so we need [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">In my work i use <a href="http://en.wikipedia.org/wiki/Secure_Shell" target="_blank">SSH</a> a lot , and some times i find myself so lazy to enter password every time or write the whole command , so here is a time savior technique</p>
<ul>
<li> as we know ssh don't accept password to be written it something called "interactive keyboard password authentication" so we need some help , install sshpass</li>
</ul>
<p><em> <strong>$ sudo aptitude install sshpass</strong></em></p>
<p>Using sshpass you could send password to ssh   example("<em>sshpass -p YOURPASS ssh USER@HOST</em>")</p>
<p><span style="color: #ff0000;"> note</span>: this is not secure at all so don't use it for online servers.</p>
<ul>
<li>Now all what we need is to put it as command-line aliases or shortcut , to do that add these lines to <strong> bashrc</strong> file</li>
</ul>
<p><em><strong> alias Myssh='sshpass -p YOURPASS ssh  USER@HOST'</strong></em></p>
<p><span style="color: #ff0000;">note</span>: to access bashrc file  <em>$ nano ~/.bashrc</em></p>
<p>and now all what you have to do just write<strong> Myssh</strong> in terminal and you are in <img src='http://dev3k.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dev3k.com/blog/2009/02/lazy-ssh-login/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

