<?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: Command line shortcut for lengthy SSH commands</title>
	<atom:link href="http://osxdaily.com/2007/05/31/command-line-shortcut-for-lengthy-ssh-command/feed/" rel="self" type="application/rss+xml" />
	<link>http://osxdaily.com/2007/05/31/command-line-shortcut-for-lengthy-ssh-command/</link>
	<description>News, tips, software, reviews, and more for Mac OS X, iPhone, iPad</description>
	<lastBuildDate>Wed, 23 May 2012 04:14:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Alaina</title>
		<link>http://osxdaily.com/2007/05/31/command-line-shortcut-for-lengthy-ssh-command/#comment-193680</link>
		<dc:creator>Alaina</dc:creator>
		<pubDate>Thu, 28 Apr 2011 14:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/05/31/command-line-shortcut-for-lengthy-ssh-command/#comment-193680</guid>
		<description>I love aliasing, but for this, ~/.ssh/config is an infinitely superior solution.</description>
		<content:encoded><![CDATA[<p>I love aliasing, but for this, ~/.ssh/config is an infinitely superior solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lar3ry</title>
		<link>http://osxdaily.com/2007/05/31/command-line-shortcut-for-lengthy-ssh-command/#comment-8360</link>
		<dc:creator>lar3ry</dc:creator>
		<pubDate>Thu, 31 May 2007 17:45:07 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/05/31/command-line-shortcut-for-lengthy-ssh-command/#comment-8360</guid>
		<description>Here&#039;s a way to do make an alias permanent without having to resort to a text editor in bash:

add_alias ()
{
    local aname=$1;
    shift;
    echo &quot;alias $aname=\&quot;$@\&quot;&quot; &#124; tee &gt;&gt; &quot;$HOME/.bashrc&quot;;
    eval &quot;alias $aname=\&quot;$@\&quot;&quot;
}

Once this handy function is in your .bashrc, you can just type:

$ add_alias servername ssh -p 800 username@servername

That will create the alias &quot;servername&quot; and add it to the end of your .bashrc so the next time you start up a terminal session, the alias will be available again.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a way to do make an alias permanent without having to resort to a text editor in bash:</p>
<p>add_alias ()<br />
{<br />
    local aname=$1;<br />
    shift;<br />
    echo &#8220;alias $aname=\&#8221;$@\&#8221;" | tee &gt;&gt; &#8220;$HOME/.bashrc&#8221;;<br />
    eval &#8220;alias $aname=\&#8221;$@\&#8221;"<br />
}</p>
<p>Once this handy function is in your .bashrc, you can just type:</p>
<p>$ add_alias servername ssh -p 800 username@servername</p>
<p>That will create the alias &#8220;servername&#8221; and add it to the end of your .bashrc so the next time you start up a terminal session, the alias will be available again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Smith</title>
		<link>http://osxdaily.com/2007/05/31/command-line-shortcut-for-lengthy-ssh-command/#comment-8348</link>
		<dc:creator>Dave Smith</dc:creator>
		<pubDate>Thu, 31 May 2007 15:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/05/31/command-line-shortcut-for-lengthy-ssh-command/#comment-8348</guid>
		<description>Use ~/.ssh/config for this sort of thing.  Look at

man ssh_config</description>
		<content:encoded><![CDATA[<p>Use ~/.ssh/config for this sort of thing.  Look at</p>
<p>man ssh_config</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weaver</title>
		<link>http://osxdaily.com/2007/05/31/command-line-shortcut-for-lengthy-ssh-command/#comment-8344</link>
		<dc:creator>Weaver</dc:creator>
		<pubDate>Thu, 31 May 2007 14:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/05/31/command-line-shortcut-for-lengthy-ssh-command/#comment-8344</guid>
		<description>not a bad tip, but I think Cedrik must have been living under a rock for 10 years because the alias command has been used in unix for eternity</description>
		<content:encoded><![CDATA[<p>not a bad tip, but I think Cedrik must have been living under a rock for 10 years because the alias command has been used in unix for eternity</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching 2/3 queries in 0.001 seconds using disk: basic
Object Caching 223/223 objects using disk: basic
Content Delivery Network via cdn.osxdaily.com

Served from: osxdaily.com @ 2012-05-22 21:22:35 -->
