sftp - Apache Commons VFS get or put files over a port-mapping -
i have question using commons-vfs2 picture, there server between client , file server used map file server port 22 10022, how can use commons-vfs2 upload or download file file server via sftp , ftp protocol?
i tried use proxy following code:
sftpfilesystemconfigbuilder.getinstance().setproxyhost(opts, "xxx.6.2.xx"); sftpfilesystemconfigbuilder.getinstance().setproxyport(opts, 10022); sftpfilesystemconfigbuilder.getinstance().setproxytype(opts, sftpfilesystemconfigbuilder.proxy_http);
but it's not work, picture url http://ccwuj.img44.wal8.com/img44/507529_20150115150159/143279929037.jpg
Comments
Post a Comment