<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SFTP in Java</title>
	<atom:link href="http://angelborroy.wordpress.com/2008/07/28/ftps-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://angelborroy.wordpress.com/2008/07/28/ftps-in-java/</link>
	<description>Tips and tricks in Java</description>
	<lastBuildDate>Thu, 02 Jul 2009 05:26:45 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: angelborroy</title>
		<link>http://angelborroy.wordpress.com/2008/07/28/ftps-in-java/#comment-105</link>
		<dc:creator>angelborroy</dc:creator>
		<pubDate>Thu, 02 Jul 2009 05:26:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-105</guid>
		<description>I didn&#039;t know Zehon, but it sounds interesting. Thanks for the info, Skip.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t know Zehon, but it sounds interesting. Thanks for the info, Skip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skip Johnson</title>
		<link>http://angelborroy.wordpress.com/2008/07/28/ftps-in-java/#comment-104</link>
		<dc:creator>Skip Johnson</dc:creator>
		<pubDate>Wed, 01 Jul 2009 19:07:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-104</guid>
		<description>I was evaluating this SFTP package from www.zehon.com.  I thought it worked great and pretty easy to use and it&#039;s free.  I&#039;m wondering if you are packaging this into some sort of an API.</description>
		<content:encoded><![CDATA[<p>I was evaluating this SFTP package from <a href="http://www.zehon.com" rel="nofollow">http://www.zehon.com</a>.  I thought it worked great and pretty easy to use and it&#8217;s free.  I&#8217;m wondering if you are packaging this into some sort of an API.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: angelborroy</title>
		<link>http://angelborroy.wordpress.com/2008/07/28/ftps-in-java/#comment-85</link>
		<dc:creator>angelborroy</dc:creator>
		<pubDate>Thu, 02 Apr 2009 18:50:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-85</guid>
		<description>Maybe your proxy does not have user authentication? 
However this library is just a Beta version. You can try with http://www.sshtools.com/en/j2ssh-maverick/. If this software works, it seems to be a bug in j2ssh.

On the other hand, JSSH can be located on any computer.</description>
		<content:encoded><![CDATA[<p>Maybe your proxy does not have user authentication?<br />
However this library is just a Beta version. You can try with <a href="http://www.sshtools.com/en/j2ssh-maverick/" rel="nofollow">http://www.sshtools.com/en/j2ssh-maverick/</a>. If this software works, it seems to be a bug in j2ssh.</p>
<p>On the other hand, JSSH can be located on any computer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venu Madhav</title>
		<link>http://angelborroy.wordpress.com/2008/07/28/ftps-in-java/#comment-84</link>
		<dc:creator>Venu Madhav</dc:creator>
		<pubDate>Wed, 01 Apr 2009 09:00:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-84</guid>
		<description>Also I would like to know if the SSH and FTP server should reside on the same server for JSSH to work or can they be on a different server IP&#039;s.</description>
		<content:encoded><![CDATA[<p>Also I would like to know if the SSH and FTP server should reside on the same server for JSSH to work or can they be on a different server IP&#8217;s.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venu Madhav</title>
		<link>http://angelborroy.wordpress.com/2008/07/28/ftps-in-java/#comment-83</link>
		<dc:creator>Venu Madhav</dc:creator>
		<pubDate>Wed, 01 Apr 2009 08:56:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-83</guid>
		<description>When I set proxy settings and just do a 
client.connect() - it is sucessful
When I set the HOST and PasswordAuthentication it says connection refused. Is there any exact way to find the exact rejection during authentication. The connection refused exception I am getting is printed in the JUnit console.</description>
		<content:encoded><![CDATA[<p>When I set proxy settings and just do a<br />
client.connect() &#8211; it is sucessful<br />
When I set the HOST and PasswordAuthentication it says connection refused. Is there any exact way to find the exact rejection during authentication. The connection refused exception I am getting is printed in the JUnit console.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: angelborroy</title>
		<link>http://angelborroy.wordpress.com/2008/07/28/ftps-in-java/#comment-82</link>
		<dc:creator>angelborroy</dc:creator>
		<pubDate>Tue, 31 Mar 2009 06:35:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-82</guid>
		<description>It seems your proxy server is not accepting connections thought port 22. Try connecting proxy on port 80 and then do the FTP connection on port 22.

Luck!</description>
		<content:encoded><![CDATA[<p>It seems your proxy server is not accepting connections thought port 22. Try connecting proxy on port 80 and then do the FTP connection on port 22.</p>
<p>Luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venu Madhav</title>
		<link>http://angelborroy.wordpress.com/2008/07/28/ftps-in-java/#comment-80</link>
		<dc:creator>Venu Madhav</dc:creator>
		<pubDate>Mon, 30 Mar 2009 14:56:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-80</guid>
		<description>Hi,

I would like to know the server setup. For me the FTP server is behind a Firewall. I need to do a SSH connection to firewall and then do a FTP connect. I am using setProxyHost setProxyUsername and setProxyPassword. But I am getting connection refused  reply always. I am using PasswordAuthenticationClient for Host password authentication.

The below is the code

public void verifySSHConnection() throws IOException {
SshClient client = new SshClient();
SshConnectionProperties connectionProperties = new SshConnectionProperties();
connectionProperties.setProxyHost(PROX_HOST);
connectionProperties.setProxyPort(22);
connectionProperties.setProxyUsername(PROXY_UNAME);
connectionProperties.setProxyPassword(PROXY_PWD);
client.connect(connectionProperties, new IgnoreHostKeyVerification());
//this is behind the firewall and proxy has got access to it
connectionProperties.setHost(HOST_NAME);
PasswordAuthenticationClient authenticationClient = new PasswordAuthenticationClient();
authenticationClient.setUsername(HOST_UNAME);
authenticationClient.setPassword(HOST_PWD);
int result = client.authenticate(authenticationClient);
if (result == AuthenticationProtocolState.COMPLETE)
System.out.println(&quot;success Authentication&quot;);
else
System.out.println(&quot;failed Authentication&quot;);
System.out.println(client.isConnected());
SftpClient sftpClient = client.openSftpClient();
sftpClient.cd(&quot;/&quot;);
}</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I would like to know the server setup. For me the FTP server is behind a Firewall. I need to do a SSH connection to firewall and then do a FTP connect. I am using setProxyHost setProxyUsername and setProxyPassword. But I am getting connection refused  reply always. I am using PasswordAuthenticationClient for Host password authentication.</p>
<p>The below is the code</p>
<p>public void verifySSHConnection() throws IOException {<br />
SshClient client = new SshClient();<br />
SshConnectionProperties connectionProperties = new SshConnectionProperties();<br />
connectionProperties.setProxyHost(PROX_HOST);<br />
connectionProperties.setProxyPort(22);<br />
connectionProperties.setProxyUsername(PROXY_UNAME);<br />
connectionProperties.setProxyPassword(PROXY_PWD);<br />
client.connect(connectionProperties, new IgnoreHostKeyVerification());<br />
//this is behind the firewall and proxy has got access to it<br />
connectionProperties.setHost(HOST_NAME);<br />
PasswordAuthenticationClient authenticationClient = new PasswordAuthenticationClient();<br />
authenticationClient.setUsername(HOST_UNAME);<br />
authenticationClient.setPassword(HOST_PWD);<br />
int result = client.authenticate(authenticationClient);<br />
if (result == AuthenticationProtocolState.COMPLETE)<br />
System.out.println(&#8220;success Authentication&#8221;);<br />
else<br />
System.out.println(&#8220;failed Authentication&#8221;);<br />
System.out.println(client.isConnected());<br />
SftpClient sftpClient = client.openSftpClient();<br />
sftpClient.cd(&#8220;/&#8221;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: angelborroy</title>
		<link>http://angelborroy.wordpress.com/2008/07/28/ftps-in-java/#comment-5</link>
		<dc:creator>angelborroy</dc:creator>
		<pubDate>Wed, 30 Jul 2008 10:07:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-5</guid>
		<description>Thanks for your remark.
I&#039;ve corrected the errata in the post.</description>
		<content:encoded><![CDATA[<p>Thanks for your remark.<br />
I&#8217;ve corrected the errata in the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Server Performance</title>
		<link>http://angelborroy.wordpress.com/2008/07/28/ftps-in-java/#comment-3</link>
		<dc:creator>Server Performance</dc:creator>
		<pubDate>Wed, 30 Jul 2008 08:10:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-3</guid>
		<description>You are right, surprisingly there are only a few options...

Your solutions is for &quot;SFTP&quot; (FTP over SSH), but if you would want to implement an &quot;FTPS&quot; client (FTP over SSL), the best option is Apache Commons Net, but changing the Socket Factory (it has a method for stablising it).


P.S: Great blog! ;-)</description>
		<content:encoded><![CDATA[<p>You are right, surprisingly there are only a few options&#8230;</p>
<p>Your solutions is for &#8220;SFTP&#8221; (FTP over SSH), but if you would want to implement an &#8220;FTPS&#8221; client (FTP over SSL), the best option is Apache Commons Net, but changing the Socket Factory (it has a method for stablising it).</p>
<p>P.S: Great blog! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
