
<?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: Sftp with Java / Processing</title>
	<atom:link href="http://www.shiffman.net/2007/06/04/sftp-with-java-processing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shiffman.net/2007/06/04/sftp-with-java-processing/</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 06:20:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Tarun</title>
		<link>http://www.shiffman.net/2007/06/04/sftp-with-java-processing/comment-page-1/#comment-912077</link>
		<dc:creator>Tarun</dc:creator>
		<pubDate>Wed, 07 Dec 2011 04:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiffman.net/2007/06/04/sftp-with-java-processing/#comment-912077</guid>
		<description>Okay for all who want the put command. Me and my friend did the put command for a project we were doing. Here is how to do it:

1. Open the src/ftp folder in the zip file you downloaded from here and open the Sftp.java file. 
2. After line 134 put the following code in :
if(cmds[0].equals(&quot;put&quot;)) {            String p1=cmds[1];            String p2=&quot;.&quot;;            if(cmds.length==3)p2=cmds[2];            SftpProgressMonitor monitor=new Progress();            int mode=ChannelSftp.OVERWRITE;            try {                //sftp.get(p1, p2, monitor, mode);				sftp.cd(p2);				File f = new File(p1);				sftp.put(new FileInputStream(f), f.getName());			} catch (SftpException e) {                e.printStackTrace();            }            return;        }

Now save this file and recompile all the 3 files in this ftp folder to make the new sftp.jar file. Use that jar file instead of the original and the put command should start working.

Special thanks to Kartik Agarwal for his help on this !</description>
		<content:encoded><![CDATA[<p>Okay for all who want the put command. Me and my friend did the put command for a project we were doing. Here is how to do it:</p>
<p>1. Open the src/ftp folder in the zip file you downloaded from here and open the Sftp.java file. <br />
2. After line 134 put the following code in :<br />
if(cmds[0].equals(&#8220;put&#8221;)) {            String p1=cmds[1];            String p2=&#8221;.&#8221;;            if(cmds.length==3)p2=cmds[2];            SftpProgressMonitor monitor=new Progress();            int mode=ChannelSftp.OVERWRITE;            try {                //sftp.get(p1, p2, monitor, mode);				sftp.cd(p2);				File f = new File(p1);				sftp.put(new FileInputStream(f), f.getName());			} catch (SftpException e) {                e.printStackTrace();            }            return;        }</p>
<p>Now save this file and recompile all the 3 files in this ftp folder to make the new sftp.jar file. Use that jar file instead of the original and the put command should start working.</p>
<p>Special thanks to Kartik Agarwal for his help on this !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dax Someone1001</title>
		<link>http://www.shiffman.net/2007/06/04/sftp-with-java-processing/comment-page-1/#comment-910712</link>
		<dc:creator>Dax Someone1001</dc:creator>
		<pubDate>Tue, 14 Jun 2011 14:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiffman.net/2007/06/04/sftp-with-java-processing/#comment-910712</guid>
		<description>checkout apache camel if you are looking for ftp/sftp/ftps implementation in java</description>
		<content:encoded><![CDATA[<p>checkout apache camel if you are looking for ftp/sftp/ftps implementation in java</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis Patel</title>
		<link>http://www.shiffman.net/2007/06/04/sftp-with-java-processing/comment-page-1/#comment-859349</link>
		<dc:creator>Dennis Patel</dc:creator>
		<pubDate>Tue, 18 Jan 2011 21:45:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiffman.net/2007/06/04/sftp-with-java-processing/#comment-859349</guid>
		<description>Hi I found a complete Java program to upload file to SFTP server at &lt;a href=&quot;http://vigilance.co.in/java-program-for-uploading-file-to-sftp-server/&quot; rel=&quot;nofollow&quot;&gt;http://vigilance.co.in/java-program-for-uploading-file-to-sftp-server/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi I found a complete Java program to upload file to SFTP server at <a href="http://vigilance.co.in/java-program-for-uploading-file-to-sftp-server/" rel="nofollow">http://vigilance.co.in/java-program-for-uploading-file-to-sftp-server/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shikhar</title>
		<link>http://www.shiffman.net/2007/06/04/sftp-with-java-processing/comment-page-1/#comment-621096</link>
		<dc:creator>shikhar</dc:creator>
		<pubDate>Mon, 08 Mar 2010 22:22:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiffman.net/2007/06/04/sftp-with-java-processing/#comment-621096</guid>
		<description>plug: give sshj (http://github.com/shikhar/sshj) a shot</description>
		<content:encoded><![CDATA[<p>plug: give sshj (<a href="http://github.com/shikhar/sshj" rel="nofollow">http://github.com/shikhar/sshj</a>) a shot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiago Pedras</title>
		<link>http://www.shiffman.net/2007/06/04/sftp-with-java-processing/comment-page-1/#comment-613990</link>
		<dc:creator>Tiago Pedras</dc:creator>
		<pubDate>Sat, 20 Feb 2010 16:38:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiffman.net/2007/06/04/sftp-with-java-processing/#comment-613990</guid>
		<description>It&#039;s too bad. =)
I can&#039;t seem to find a better alternative to use SFTP and yours seemed really nice. Couldn&#039;t get it to work though due to the &quot;libraries&quot; folder miss location (can&#039;t find where to put your files).</description>
		<content:encoded><![CDATA[<p>It&#8217;s too bad. =)<br />
I can&#8217;t seem to find a better alternative to use SFTP and yours seemed really nice. Couldn&#8217;t get it to work though due to the &#8220;libraries&#8221; folder miss location (can&#8217;t find where to put your files).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.shiffman.net/2007/06/04/sftp-with-java-processing/comment-page-1/#comment-613985</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 20 Feb 2010 16:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiffman.net/2007/06/04/sftp-with-java-processing/#comment-613985</guid>
		<description>No sorry, I never got around to it.  If you look at the source though, you can see where to add it.  I will try to take care of it soon though!</description>
		<content:encoded><![CDATA[<p>No sorry, I never got around to it.  If you look at the source though, you can see where to add it.  I will try to take care of it soon though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiago Pedras</title>
		<link>http://www.shiffman.net/2007/06/04/sftp-with-java-processing/comment-page-1/#comment-613956</link>
		<dc:creator>Tiago Pedras</dc:creator>
		<pubDate>Sat, 20 Feb 2010 15:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiffman.net/2007/06/04/sftp-with-java-processing/#comment-613956</guid>
		<description>Hey, this is great! But what about that &quot;put&quot; function?
Does it exist? Can I upload or does it only have download?

Regards</description>
		<content:encoded><![CDATA[<p>Hey, this is great! But what about that &#8220;put&#8221; function?<br />
Does it exist? Can I upload or does it only have download?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Kirn</title>
		<link>http://www.shiffman.net/2007/06/04/sftp-with-java-processing/comment-page-1/#comment-42780</link>
		<dc:creator>Peter Kirn</dc:creator>
		<pubDate>Tue, 05 Jun 2007 17:09:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.shiffman.net/2007/06/04/sftp-with-java-processing/#comment-42780</guid>
		<description>Excellent ... but now I think Amazon S3 support must be next. :) I&#039;ll let you know how I fare. Everything&#039;s documented for, like, real programmers with jobs and such, instead of ... erm ... me.</description>
		<content:encoded><![CDATA[<p>Excellent &#8230; but now I think Amazon S3 support must be next. <img src='http://www.shiffman.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I&#8217;ll let you know how I fare. Everything&#8217;s documented for, like, real programmers with jobs and such, instead of &#8230; erm &#8230; me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

