<?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>YAWS: Yet Another Web Space &#187; ssh</title>
	<atom:link href="http://www.vigneras.name/pierre/wp/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vigneras.name/pierre/wp</link>
	<description></description>
	<lastBuildDate>Fri, 11 Nov 2011 17:00:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Dealing with ssh &#8220;hidden&#8221; stuff: config file</title>
		<link>http://www.vigneras.name/pierre/wp/2009/07/29/dealing-with-ssh-hidden-stuff-config-file/</link>
		<comments>http://www.vigneras.name/pierre/wp/2009/07/29/dealing-with-ssh-hidden-stuff-config-file/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 17:51:32 +0000</pubDate>
		<dc:creator>pierre</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Open-Source]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.vigneras.org/pierre/wp/?p=189</guid>
		<description><![CDATA[If you use ssh a lot, you may sometimes feel tired giving same options all the time for the same server. For example if you have an account &#8216;alpha&#8217; on a server called &#8216;tarentula&#8217; you may use the following command: ssh alpha@tarentula You may simplify your life: insert the following lines into your .ssh/config: Host [...]]]></description>
			<content:encoded><![CDATA[<p>If you use ssh a lot, you may sometimes feel tired giving same options all the time for the same server.</p>
<p>For example if you have an account &#8216;alpha&#8217; on a server called &#8216;tarentula&#8217; you may use the following command:</p>
<p><code>ssh alpha@tarentula</code></p>
<p>You may simplify your life: insert the following lines into your .ssh/config:</p>
<pre>Host tarentula
    User alpha</pre>
<p>Then, you can just type:</p>
<p><code>ssh tarentula</code></p>
<p>and you will get logged in &#8216;tarentula&#8217; with the &#8216;alpha&#8217; account.</p>
<p>I admit, this is not very impressive. But consider the following lines into your ~/.ssh/config:</p>
<pre>
Host tarentula
    User alpha
    ForwardX11 yes
    ForwardX11Trusted yes

Host *
    Compression yes
</pre>
<p>This basically means: for the &#8216;tarentula&#8217; host given on the command line (this is different than the real host, see below): forward my X display (like if you did a <code>ssh -X tarentula</code>); and for all hosts (including tarentula), enable compression.</p>
<p>Better, if, for some reasons, you are behind a firewall, you can still access to an external server using the following:</p>
<pre>
Host tarentula
    ProxyCommand corkscrew proxy.company.com 8080 %h %p
</pre>
<p>Of course, <a href="http://www.agroman.net/corkscrew/">corkscrew</a> should be installed on your machine.</p>
<p>Finally, if you use virtualisation, you may have setup some ssh tunnels in order to access your various virtual machines. But you end up having to type ssh commands such as this one:</p>
<p><code>ssh -p 22024 beta@10.0.0.10</code></p>
<p>to enter as &#8216;beta&#8217; in the 24th virtual machine that 10.0.0.10 is currently running. A config file such as this one:</p>
<pre>
Host vm24
    HostName 10.0.0.10
    Port 22024
    User beta
</pre>
<p>will make your life much simpler:</p>
<p><code>ssh vm24</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vigneras.name/pierre/wp/2009/07/29/dealing-with-ssh-hidden-stuff-config-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

