<?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>Sohail Riaz, Linux and Open Source Blog &#187; SSH</title>
	<atom:link href="http://www.sohailriaz.com/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sohailriaz.com</link>
	<description>Sohail Riaz, Linux and Open Source Blog</description>
	<lastBuildDate>Sat, 17 Jul 2010 07:38:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HowTo SSH outside using Authenticated Proxy</title>
		<link>http://www.sohailriaz.com/howto-ssh-outside-using-authenticated-proxy/</link>
		<comments>http://www.sohailriaz.com/howto-ssh-outside-using-authenticated-proxy/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 07:19:43 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=40</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/howto-ssh-outside-using-authenticated-proxy/"><img src=""  alt="" title="" /></a>
This howto describe how to ssh outside another network / server using authenticated proxy. SSH (Secure Shell) is typically used to log into a remote machine and execute commands, but it also supports tunneling, forwarding TCP ports and X11 connections; it can transfer files using the associated SFTP or SCP protocols.
Normally we use NetCat to [...]]]></description>
			<content:encoded><![CDATA[<p>This howto describe how to ssh outside another network / server using authenticated proxy. SSH (Secure Shell) is typically used to log into a remote machine and execute commands, but it also supports tunneling, forwarding TCP ports and X11 connections; it can transfer files using the associated SFTP or SCP protocols.<span id="more-40"></span></p>
<p>Normally we use NetCat to ssh outside using proxy server but if its not support proxy user / pass to authenticate by proxy server and then ssh outside. Here we will use a package called connect.c.</p>
<p><strong>connect.c</strong> is the simple relaying command to make network connection via SOCKS and https proxy. It is mainly intended to be used as <strong>proxy command</strong> of OpenSSH. You can make SSH session beyond the firewall with this command.</p>
<p>This can be achieved by other methods too but this works for me.</p>
<h3>1) Download connect.c software.</h3>
<blockquote><p>wget http://www.meadowy.org/~gotoh/ssh/connect.c</p></blockquote>
<h3>2) Compile connect.c Using GCC</h3>
<blockquote><p>gcc connect.c -o connect</p></blockquote>
<p>and then copy to directory in your PATH i.e /usr/bin or /usr/local/bin</p>
<blockquote><p>cp connect /usr/bin</p></blockquote>
<h3>3) Congiure ssh_config</h3>
<p>append following line</p>
<blockquote><p>ProxyCommand /usr/bin/connect -H proxy01.sohailriaz.com:8080 %h %p</p></blockquote>
<h3>4) Export Proxy User / Pass as variable</h3>
<p>It is insecure but we have to used it. If your proxy doesnt use user/pass for authenticatio, you can skip this.</p>
<blockquote><p>export HTTP_PROXY_USER=your_username<br />
export HTTP_PROXY_PASSWORD=your_password</p></blockquote>
<p>Thats it now you can ssh outside without any restriction <img src='http://www.sohailriaz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=40&amp;ts=1283813488" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/howto-ssh-outside-using-authenticated-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
