Re: [JSch-users] How to upload/download files from MVS system.
Status: Alpha
Brought to you by:
ymnk
From: Oberhuber, M. <Mar...@wi...> - 2006-07-17 07:47:34
|
Hi Brij, =20 you are misunderstanding. SFTP is _not_ just a secured version of FTP, = it is something different. =20 I see two alternatives for you: =20 a) Get an ssh server for MVS that supports standard sftp (not sure if = such a server exists). =20 b) Instead of SFTP, use FTP-over-ssh. It works like this: * ssh does port forwarding of port #21 through its secure connection * you use a standard FTP client to access the standard MVS FTP = server - but through the forwarded port When I remember right, you were writing your own Java FTP client -- = adding jsch port forwarding to that client should be easy to do. Cheers, Martin -- Martin Oberhuber - WindRiver, Austria +43(662)457915-85 =20 ________________________________ From: jsc...@li... = [mailto:jsc...@li...] On Behalf Of brijesh = kadecha Sent: Monday, July 17, 2006 8:42 AM To: jsc...@li... Subject: Re: [JSch-users] How to upload/download files from MVS system. =09 =09 Hi, Thanks for reply. =09 If SFTP protocol does not support 'SITE' command then how can we = upload/download files from MVS system?. I thought SFTP provides all = functionality of FTP protocol but additionaly provides secured = communication. =09 While FTP we send some file parameters via SITE commands. These site = parameters may be 'quote SITE sbd=3D.........' or 'cylinders pri=3D1 = sec=3D1'. These types of parameters, we were passing using SITE = commands in case of simple FTP. I think these parameters are specific to = MVS system & without these parameters we can not upload/download files = from MVS system. =09 For simple FTP we were using jakarta's commons.net API's methods = FTPClient.sendSiteParameters().=20 =09 But if I want to upload/download files from MVS thru SFTP then how can = I achieve this task. Since SFTP is secured version of FTP so there = should be some workaround to achieve such task. Please let me know how = can I achieve this task?. =09 Thanks & Rregards Brij =09 Atsuhiko Yamanaka <ym...@jc...> wrote:=20 Hi, =09 +-From: brijesh kadecha -- |_Date: Fri, 14 Jul 2006 03:08:53 -0700 (PDT) ______ | | Actually I am interested in 'SITE' command of original FTP protocol = for SFTP. Which method of JSch API can be used for it & how? OR which = command of SFTP is equivalent to it & which is corresponding method in = JSch API? =09 On the sftp protocol, SITE command is not defined, unfortunately. =09 =09 Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Fax +81-22-224-8773 Skype callto://jcraft/ =09 =09 ________________________________ Yahoo! Messenger with Voice. Make PC-to-Phone Calls = <http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com= /evt=3D39663/*http://voice.yahoo.com> to the US (and 30+ countries) for = 2=A2/min or less. |