<?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>Piece of Unix Hints &#187; SSH</title>
	<atom:link href="http://hints.jeb.be/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://hints.jeb.be</link>
	<description>hints.jeb.be</description>
	<lastBuildDate>Fri, 04 Dec 2009 20:35:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PPP Over SSH</title>
		<link>http://hints.jeb.be/2008/12/17/ppp-over-ssh/</link>
		<comments>http://hints.jeb.be/2008/12/17/ppp-over-ssh/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 01:47:40 +0000</pubDate>
		<dc:creator>Jeb</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[PPP]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://hints.jeb.be/?p=32</guid>
		<description><![CDATA[You may want to establish a full IP connection to a remote host (or remote lan) but you may not have any VPN software on the remote host, or on your host. There is a solution using SSH and PPP with the command pppd pty 'ssh -x -t -e none user@server /usr/sbin/pppd passive noauth 9600' [...]]]></description>
			<content:encoded><![CDATA[<p>You may want to establish a full IP connection to a remote host (or remote lan) but you may not have any VPN software on the remote host, or on your host.<br />
There is a solution using SSH and PPP with the command</p>
<blockquote><p><code>pppd pty 'ssh -x -t -e none user@server /usr/sbin/pppd passive noauth 9600' noauth 10.0.0.1:10.0.0.2</code></p></blockquote>
<p>You have to use key authentication because the tty is redirected to pppd so you can&#8217;t be prompted for a password.<br />
With this command, you can reach server at IP 10.0.0.1.<br />
By playing with pppd and route tables you can extend the IP tunnel to the entire remote LAN.</p>
<p>This has been tested between Mac OS X and NetBSD but should work with any system.<br />
It works but it&#8217;s very slow.</p>
<p>On some system you may have TTY problem, if it&#8217;s your case take a look to <a  class="ext-link" href="http://www.ishiboo.com/~nirva/Projects/vpn/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.ishiboo.com/_nirva/Projects/vpn/?referer=');">http://shinythings.com/pty-redir/</a> or <a class="ext-link"  href="http://www.ishiboo.com/~nirva/Projects/vpn/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.ishiboo.com/_nirva/Projects/vpn/?referer=');">http://www.ishiboo.com/~nirva/Projects/vpn/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hints.jeb.be/2008/12/17/ppp-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup through SSH</title>
		<link>http://hints.jeb.be/2008/12/17/backup-through-ssh/</link>
		<comments>http://hints.jeb.be/2008/12/17/backup-through-ssh/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 01:25:29 +0000</pubDate>
		<dc:creator>Jeb</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[TAR]]></category>

		<guid isPermaLink="false">http://hints.jeb.be/?p=12</guid>
		<description><![CDATA[Why using SSH to transfer data when you can use SCP/SFTP ? Because sometime SCP is disable in SSH configuration. So here is an easy way to transfert data with ssh. Run something like this ssh -C &#60;host&#62; "cd /path/to/folder/to/transfer; tar cvf - *" &#124; tar xfv -C will compress tranfer using gzip, I didn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Why using SSH to transfer data when you can use SCP/SFTP ?<br />
Because sometime SCP is disable in SSH configuration.
</p>
<p>
So here is an easy way to transfert data with ssh. Run something like this
</p>
<pre class="wiki">ssh -C &lt;host&gt; "cd /path/to/folder/to/transfer; tar cvf - *" | tar xfv
</pre>
<p>
-C will compress tranfer using gzip, I didn&#8217;t do any test to see if it&#8217;s better to use -C to compress on the SSH level or to use tar cvzf to compress the tar file. If you do please give me result ! <br />
&#8220;| tar xvf&#8221; will extract file in your current directory, of course, you may want to leave them in the .tar file.</p>
]]></content:encoded>
			<wfw:commentRss>http://hints.jeb.be/2008/12/17/backup-through-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
