Sorry but your question is not quite clear. I guess you want to use a "relay" or "proxy" server to enhance security of your system. You can do something like that using SSH tunneling, which is a standard SSH feature. Then client send data to Relay, and Relay would redirect data to Server. In JSCH it is done by Session.setPortForwardingL and Session. setPortForwardingR. Google SSH tunneling for information.
JSCH is a SSH implementation, it just does what SSH protocols defined, nothing more. SecureCRT is a commercial product which does much more than SSH. It doesn't offer much value to comparing SSH with it. By the way you may want to remove Chinese characters in your email, some computer could not render them correctly. My notebook did render them :) Pan Li http://Prominic.NET || pa...@prominic.net 8620-82316133 From: 白浩平 <baihaop...@gmail.com> To: "'Pan Li'" <pa...@prominic.net> Cc: <jsch-users@lists.sourceforge.net> Date: 2009/10/11 15:25 Subject: 答复: [JSch-users] how to synchronize files with sftp Hi, Actually I want to implement some feature like synchronization, I will monitor my local directory, if one file changed, I will upload it to the remote server using sftp automatically. I have found example of jsch using sftp, but it just shows how to connect directly to one server, not my situation. I just want to know, is jsch capable of using sftp just like SecureCRT or something like. In SecureCRT, I can ssh to ServerA and ssh to ServerB and ssh to ServerC, and then using sftp to transfer files Thanks very much! 发件人: Pan Li [mailto:pa...@prominic.net] 发送时间: 2009年10月11日 15:19 收件人: 白浩平 抄送: jsch-users@lists.sourceforge.net 主题: Re: [JSch-users] how to synchronize files with sftp Hi Sftp won't do what you need. It transforms data between sever/client, it does not take care file synchronization. If what you need is to synchronize your file, you can use WinSCP or other clients which has build in synchronization. Or you can use rsync or something like that. If you want to develop a tool to synchronizing file/directories, you have to get the source code of rsync and read it. Rsync is a big program; file synchronization is not easy to implement correctly. Pan Li http://Prominic.NET || pa...@prominic.net 8620-82316133 Inactive hide details for 白浩平 ---2009/10/11 15:09:05---Hi, all白浩平 ---2009/10/11 15:09:05---Hi, all From: 白浩平 <baihaop...@gmail.com> To: <jsch-users@lists.sourceforge.net> Date: 2009/10/11 15:09 Subject: [JSch-users] how to synchronize files with sftp Hi, all I don’t know if I have sent one same mail, if so, I am so sorry, please ignore the last one. Here is my problem: I have to ssh to a relay server, and then ssh to a development server and then ssh to a test server. Now I want to synchronize files with sftp between local machine and the test server. What should I do? Please help me with some code example, thanks very much! ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference
_______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users