<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://freebsdwiki.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://freebsdwiki.net/index.php?action=history&amp;feed=atom&amp;title=SSH%2C_forwarding_ports_over</id>
		<title>SSH, forwarding ports over - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://freebsdwiki.net/index.php?action=history&amp;feed=atom&amp;title=SSH%2C_forwarding_ports_over"/>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=SSH,_forwarding_ports_over&amp;action=history"/>
		<updated>2026-04-08T05:04:55Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=SSH,_forwarding_ports_over&amp;diff=11574&amp;oldid=prev</id>
		<title>Jimbo at 16:31, 6 December 2009</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=SSH,_forwarding_ports_over&amp;diff=11574&amp;oldid=prev"/>
				<updated>2009-12-06T16:31:07Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If you have SSH access to a remote machine, you can use it as a quick-and-dirty way to encrypt-and-tunnel other traffic to that machine.&lt;br /&gt;
&lt;br /&gt;
For example, let's say a remote machine you have SSH access to is running an rsync daemon, but you're on the wrong side of a firewall from it.  You can set up an SSH tunnel to forward the local port 8730 to the remote port 873 like so:&lt;br /&gt;
&lt;br /&gt;
 me@box:~ ssh -f user@remotemachine -L 8730:remotemachine:873 -N&lt;br /&gt;
&lt;br /&gt;
The -f tells ssh to go into the background just before it executes the command. This is followed by the username and server you are logging into. The -L 8730:remote:873 is in the form of -L local-port:remote-host:remote-port. The -N instructs OpenSSH to not execute a command on the remote system.&lt;br /&gt;
&lt;br /&gt;
After running this command, you're ready to access the remote port 873 by way of local port 8730:&lt;br /&gt;
&lt;br /&gt;
 me@box:~ rsync --port=8730 localhost::&lt;br /&gt;
 remote_share&lt;br /&gt;
 another_remote_share&lt;br /&gt;
 yet_another_remote_share&lt;br /&gt;
&lt;br /&gt;
[[Category:Common Tasks]] [[Category:SSH]] [[Category:Networking]]&lt;/div&gt;</summary>
		<author><name>Jimbo</name></author>	</entry>

	</feed>