<?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: Using SSH or SFTP resources from a Java app</title>
	<atom:link href="http://www.spartanjava.com/2009/using-ssh-or-sftp-resources-from-a-java-app/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spartanjava.com/2009/using-ssh-or-sftp-resources-from-a-java-app/</link>
	<description>Simple yet powerful Java programming</description>
	<lastBuildDate>Tue, 09 Mar 2010 10:38:04 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rahul</title>
		<link>http://www.spartanjava.com/2009/using-ssh-or-sftp-resources-from-a-java-app/comment-page-1/#comment-3268</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Tue, 09 Mar 2010 10:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.spartanjava.com/?p=28#comment-3268</guid>
		<description>Does anyone know how to send SMS using java..??</description>
		<content:encoded><![CDATA[<p>Does anyone know how to send SMS using java..??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://www.spartanjava.com/2009/using-ssh-or-sftp-resources-from-a-java-app/comment-page-1/#comment-3261</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Wed, 03 Mar 2010 05:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.spartanjava.com/?p=28#comment-3261</guid>
		<description>Hey I used POI to read excel file and again create after result..Now i want to display the row by row content of  excel on web page..web page is created using JSP.which i m not able to do..so can u help in that.</description>
		<content:encoded><![CDATA[<p>Hey I used POI to read excel file and again create after result..Now i want to display the row by row content of  excel on web page..web page is created using JSP.which i m not able to do..so can u help in that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ricardoz</title>
		<link>http://www.spartanjava.com/2009/using-ssh-or-sftp-resources-from-a-java-app/comment-page-1/#comment-3258</link>
		<dc:creator>ricardoz</dc:creator>
		<pubDate>Mon, 01 Mar 2010 14:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.spartanjava.com/?p=28#comment-3258</guid>
		<description>@Rahul: check out &lt;a href=&quot;http://poi.apache.org/&quot; rel=&quot;nofollow&quot;&gt;Apache POI&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>@Rahul: check out <a href="http://poi.apache.org/" rel="nofollow">Apache POI</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://www.spartanjava.com/2009/using-ssh-or-sftp-resources-from-a-java-app/comment-page-1/#comment-3255</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Mon, 01 Mar 2010 04:58:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.spartanjava.com/?p=28#comment-3255</guid>
		<description>Hey guys; anyone knows how to display the excel file content in Jsp page..</description>
		<content:encoded><![CDATA[<p>Hey guys; anyone knows how to display the excel file content in Jsp page..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://www.spartanjava.com/2009/using-ssh-or-sftp-resources-from-a-java-app/comment-page-1/#comment-3241</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Thu, 25 Feb 2010 12:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.spartanjava.com/?p=28#comment-3241</guid>
		<description>Hey M sorry for late reply..I did this.. Actually i missed one lib file..after adding that its working..Thanks..</description>
		<content:encoded><![CDATA[<p>Hey M sorry for late reply..I did this.. Actually i missed one lib file..after adding that its working..Thanks..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ricardoz</title>
		<link>http://www.spartanjava.com/2009/using-ssh-or-sftp-resources-from-a-java-app/comment-page-1/#comment-3230</link>
		<dc:creator>ricardoz</dc:creator>
		<pubDate>Tue, 23 Feb 2010 15:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.spartanjava.com/?p=28#comment-3230</guid>
		<description>@Rahul: what error are you getting?</description>
		<content:encoded><![CDATA[<p>@Rahul: what error are you getting?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://www.spartanjava.com/2009/using-ssh-or-sftp-resources-from-a-java-app/comment-page-1/#comment-3227</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Tue, 23 Feb 2010 07:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.spartanjava.com/?p=28#comment-3227</guid>
		<description>I wrote the program accodingly what has given above but m getting error. m pasting the code..can someone tell where m going wrong.
//*****************************//
import com.sshtools.j2ssh.SftpClient;
import com.sshtools.j2ssh.SshClient;
import com.sshtools.j2ssh.authentication.PasswordAuthenticationClient;
import com.sshtools.j2ssh.sftp.SftpFile;

public class downloadlog1
{
  public String hostname=null;
  public String username=null;
  public String password=null;
  public String remotepath=null;
  public String localpath=null;
  //public String fileExtention=&quot;log&quot;;
  public String remoteFilename=null;
  public void con()
  {
    SshClient ssh=null;
    SftpClient sftp=null;

    try
    {
        hostname=&quot;172.19.3.106&quot;;
        username=&quot;root&quot;;
        password=&quot;root123&quot;;
        remotepath=&quot; &quot;;// here i mentioned the server path
        localpath=&quot; &quot;;// here i mentioned the path where i have to save file after downloading        
        ssh=new SshClient();        
        ssh.connect(hostname);
        PasswordAuthenticationClient auth=new PasswordAuthenticationClient();
        auth.setUsername(username);
        auth.setPassword(password);
        ssh.authenticate(auth);
        sftp=ssh.openSftpClient();
        sftp.lcd(localpath);
        sftp.get(&quot; &quot;);// here i mentioned the file with full path which i need to download
        sftp.quit();
        ssh.disconnect();
    }
    catch(Exception e)
    {
        System.out.println(&quot;Exception while connecting to the remote server&quot; + e);
    }
   }
  public static void main(String args[]) throws Exception
  {
    downloadlog1 obj=new downloadlog1();
    obj.con();// calling the function
  }
}</description>
		<content:encoded><![CDATA[<p>I wrote the program accodingly what has given above but m getting error. m pasting the code..can someone tell where m going wrong.<br />
//*****************************//<br />
import com.sshtools.j2ssh.SftpClient;<br />
import com.sshtools.j2ssh.SshClient;<br />
import com.sshtools.j2ssh.authentication.PasswordAuthenticationClient;<br />
import com.sshtools.j2ssh.sftp.SftpFile;</p>
<p>public class downloadlog1<br />
{<br />
  public String hostname=null;<br />
  public String username=null;<br />
  public String password=null;<br />
  public String remotepath=null;<br />
  public String localpath=null;<br />
  //public String fileExtention=&#8221;log&#8221;;<br />
  public String remoteFilename=null;<br />
  public void con()<br />
  {<br />
    SshClient ssh=null;<br />
    SftpClient sftp=null;</p>
<p>    try<br />
    {<br />
        hostname=&#8221;172.19.3.106&#8243;;<br />
        username=&#8221;root&#8221;;<br />
        password=&#8221;root123&#8243;;<br />
        remotepath=&#8221; &#8220;;// here i mentioned the server path<br />
        localpath=&#8221; &#8220;;// here i mentioned the path where i have to save file after downloading<br />
        ssh=new SshClient();<br />
        ssh.connect(hostname);<br />
        PasswordAuthenticationClient auth=new PasswordAuthenticationClient();<br />
        auth.setUsername(username);<br />
        auth.setPassword(password);<br />
        ssh.authenticate(auth);<br />
        sftp=ssh.openSftpClient();<br />
        sftp.lcd(localpath);<br />
        sftp.get(&#8221; &#8220;);// here i mentioned the file with full path which i need to download<br />
        sftp.quit();<br />
        ssh.disconnect();<br />
    }<br />
    catch(Exception e)<br />
    {<br />
        System.out.println(&#8221;Exception while connecting to the remote server&#8221; + e);<br />
    }<br />
   }<br />
  public static void main(String args[]) throws Exception<br />
  {<br />
    downloadlog1 obj=new downloadlog1();<br />
    obj.con();// calling the function<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ricardoz</title>
		<link>http://www.spartanjava.com/2009/using-ssh-or-sftp-resources-from-a-java-app/comment-page-1/#comment-3219</link>
		<dc:creator>ricardoz</dc:creator>
		<pubDate>Mon, 22 Feb 2010 16:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.spartanjava.com/?p=28#comment-3219</guid>
		<description>You need the SSH Tools JAR and its dependencies, you can find them both in the SSH Tools homepage.</description>
		<content:encoded><![CDATA[<p>You need the SSH Tools JAR and its dependencies, you can find them both in the SSH Tools homepage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://www.spartanjava.com/2009/using-ssh-or-sftp-resources-from-a-java-app/comment-page-1/#comment-3216</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Mon, 22 Feb 2010 08:49:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.spartanjava.com/?p=28#comment-3216</guid>
		<description>which all lib need to b imported in order to run this program?</description>
		<content:encoded><![CDATA[<p>which all lib need to b imported in order to run this program?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bigbird</title>
		<link>http://www.spartanjava.com/2009/using-ssh-or-sftp-resources-from-a-java-app/comment-page-1/#comment-3183</link>
		<dc:creator>bigbird</dc:creator>
		<pubDate>Wed, 17 Feb 2010 06:48:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.spartanjava.com/?p=28#comment-3183</guid>
		<description>I can say from experience with working with a variety of SFTP servers that j2ssh is pretty buggy.

A commercial option is edtFTPj/PRO:

http://www.enterprisedt.com/products/edtftpjssl/overview.html

It is well documented and well supported.</description>
		<content:encoded><![CDATA[<p>I can say from experience with working with a variety of SFTP servers that j2ssh is pretty buggy.</p>
<p>A commercial option is edtFTPj/PRO:</p>
<p><a href="http://www.enterprisedt.com/products/edtftpjssl/overview.html" rel="nofollow">http://www.enterprisedt.com/products/edtftpjssl/overview.html</a></p>
<p>It is well documented and well supported.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
