<?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: SSH Pop Quiz</title>
	<atom:link href="http://ubuntu-tutorials.com/2009/03/06/ssh-pop-quiz/feed/" rel="self" type="application/rss+xml" />
	<link>http://ubuntu-tutorials.com/2009/03/06/ssh-pop-quiz/</link>
	<description>Enhancing your Ubuntu experience!</description>
	<lastBuildDate>Fri, 11 May 2012 05:04:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: anon</title>
		<link>http://ubuntu-tutorials.com/2009/03/06/ssh-pop-quiz/#comment-8066</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Sun, 08 Mar 2009 18:32:17 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=975#comment-8066</guid>
		<description>A bit off topic but if you need to send a file from the server you are on to another one - but need to go through a middle-man and do not want to setup agent:

tar -cf - * &#124; ssh proxyuser@proxyhost &quot;cat - &#124; ssh
destinationuser@destinationhost &#039;cat - &gt; file.tar&#039;&quot;

That will tar up a directory &amp; send it over ssh at the same time and name it at your destination as file.tar</description>
		<content:encoded><![CDATA[<p>A bit off topic but if you need to send a file from the server you are on to another one &#8211; but need to go through a middle-man and do not want to setup agent:</p>
<p>tar -cf &#8211; * | ssh proxyuser@proxyhost &#8220;cat &#8211; | ssh<br />
destinationuser@destinationhost &#8216;cat &#8211; &gt; file.tar&#8217;&#8221;</p>
<p>That will tar up a directory &amp; send it over ssh at the same time and name it at your destination as file.tar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jimcooncat</title>
		<link>http://ubuntu-tutorials.com/2009/03/06/ssh-pop-quiz/#comment-8060</link>
		<dc:creator>jimcooncat</dc:creator>
		<pubDate>Sun, 08 Mar 2009 16:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=975#comment-8060</guid>
		<description>If you only need shell access, and you trust the machine1, then you could just leave a screen session on machine1 that is ssh&#039;d into machine 2. 

Have your home machine ssh into machine1 and have it reconnect to the screen session. 

This way is fast, and keeps a long-running terminal with history available. Also good if you have different users or authentication setup for each connection.You lose nice features like scp though.</description>
		<content:encoded><![CDATA[<p>If you only need shell access, and you trust the machine1, then you could just leave a screen session on machine1 that is ssh&#8217;d into machine 2. </p>
<p>Have your home machine ssh into machine1 and have it reconnect to the screen session. </p>
<p>This way is fast, and keeps a long-running terminal with history available. Also good if you have different users or authentication setup for each connection.You lose nice features like scp though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Vincent</title>
		<link>http://ubuntu-tutorials.com/2009/03/06/ssh-pop-quiz/#comment-8044</link>
		<dc:creator>Mike Vincent</dc:creator>
		<pubDate>Sat, 07 Mar 2009 16:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=975#comment-8044</guid>
		<description>I&#039;ve used both..
ProxyCommand ssh proxy.example.com &#039;exec 3/dev/tcp/%h/22;(cat &amp;3&#039;

And.. 
ProxyCommand ssh proxy.example.com nc -w 1 %h %p

Both work great, you can even scp seamlessly through the proxy.

Only problem I find is I end up with a lot of stale sessions on the proxy host.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve used both..<br />
ProxyCommand ssh proxy.example.com &#8216;exec 3/dev/tcp/%h/22;(cat &amp;3&#8242;</p>
<p>And..<br />
ProxyCommand ssh proxy.example.com nc -w 1 %h %p</p>
<p>Both work great, you can even scp seamlessly through the proxy.</p>
<p>Only problem I find is I end up with a lot of stale sessions on the proxy host.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymous_from_tatooine</title>
		<link>http://ubuntu-tutorials.com/2009/03/06/ssh-pop-quiz/#comment-8042</link>
		<dc:creator>anonymous_from_tatooine</dc:creator>
		<pubDate>Sat, 07 Mar 2009 14:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=975#comment-8042</guid>
		<description>why not just

ssh -t machine1  &#039;ssh -t machine2&#039;</description>
		<content:encoded><![CDATA[<p>why not just</p>
<p>ssh -t machine1  &#8216;ssh -t machine2&#8242;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marius Gedminas</title>
		<link>http://ubuntu-tutorials.com/2009/03/06/ssh-pop-quiz/#comment-8041</link>
		<dc:creator>Marius Gedminas</dc:creator>
		<pubDate>Sat, 07 Mar 2009 12:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=975#comment-8041</guid>
		<description>Here&#039;s the obligatory example using netcat:

Host machine1 machine2 machine3
ProxyCommand ssh -q -a -x firewall nc -w 1 %h %p</description>
		<content:encoded><![CDATA[<p>Here&#8217;s the obligatory example using netcat:</p>
<p>Host machine1 machine2 machine3<br />
ProxyCommand ssh -q -a -x firewall nc -w 1 %h %p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: foo</title>
		<link>http://ubuntu-tutorials.com/2009/03/06/ssh-pop-quiz/#comment-8037</link>
		<dc:creator>foo</dc:creator>
		<pubDate>Sat, 07 Mar 2009 09:26:10 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=975#comment-8037</guid>
		<description>By the way, you can use `nc` (netcat) instead of `tcpconnect`, it&#039;s the same (in my case nc wasn&#039;t installed on the proxy).</description>
		<content:encoded><![CDATA[<p>By the way, you can use `nc` (netcat) instead of `tcpconnect`, it&#8217;s the same (in my case nc wasn&#8217;t installed on the proxy).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: martijn</title>
		<link>http://ubuntu-tutorials.com/2009/03/06/ssh-pop-quiz/#comment-8036</link>
		<dc:creator>martijn</dc:creator>
		<pubDate>Sat, 07 Mar 2009 08:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=975#comment-8036</guid>
		<description>&#039;ForwardAgent yes&#039; does exactly what you&#039;re looking for.</description>
		<content:encoded><![CDATA[<p>&#8216;ForwardAgent yes&#8217; does exactly what you&#8217;re looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hans</title>
		<link>http://ubuntu-tutorials.com/2009/03/06/ssh-pop-quiz/#comment-8035</link>
		<dc:creator>hans</dc:creator>
		<pubDate>Sat, 07 Mar 2009 05:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=975#comment-8035</guid>
		<description>An alias (or shell function or shell script) seems like the right thing to me too. But that *.proxied trick is pretty slick.</description>
		<content:encoded><![CDATA[<p>An alias (or shell function or shell script) seems like the right thing to me too. But that *.proxied trick is pretty slick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christer Edwards</title>
		<link>http://ubuntu-tutorials.com/2009/03/06/ssh-pop-quiz/#comment-8034</link>
		<dc:creator>Christer Edwards</dc:creator>
		<pubDate>Sat, 07 Mar 2009 03:20:52 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=975#comment-8034</guid>
		<description>@mike - I did think about using an alias, and that would be a very simple solution.  The drawback to that in my mind is that the configuration for my ssh connections is then spread between two files and two formats.  When I do backups and restores of my machine it&#039;d be one more file to add to the list.  I&#039;d prefer to just be able to backup my .ssh/ directory and have my keys, known hosts and settings all there.</description>
		<content:encoded><![CDATA[<p>@mike &#8211; I did think about using an alias, and that would be a very simple solution.  The drawback to that in my mind is that the configuration for my ssh connections is then spread between two files and two formats.  When I do backups and restores of my machine it&#8217;d be one more file to add to the list.  I&#8217;d prefer to just be able to backup my .ssh/ directory and have my keys, known hosts and settings all there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike hancock</title>
		<link>http://ubuntu-tutorials.com/2009/03/06/ssh-pop-quiz/#comment-8033</link>
		<dc:creator>mike hancock</dc:creator>
		<pubDate>Sat, 07 Mar 2009 03:16:39 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=975#comment-8033</guid>
		<description>this is not a correct solution, but what about using alias to map the command &quot;ssh machine1&quot; to actually run what you want.  sounds like this is exactly what alias is meant to do?  

note
sorry if i am off base here; just an idea</description>
		<content:encoded><![CDATA[<p>this is not a correct solution, but what about using alias to map the command &#8220;ssh machine1&#8243; to actually run what you want.  sounds like this is exactly what alias is meant to do?  </p>
<p>note<br />
sorry if i am off base here; just an idea</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: basic (User agent is rejected)
Database Caching 2/5 queries in 0.003 seconds using disk: basic
Object Caching 315/315 objects using disk: basic

Served from: ubuntu-tutorials.com @ 2012-05-25 03:59:23 -->
