Hi Tong Wang,
Thanks alot of your guideline reply at here. Sorry for my late reply because busy on some other works.
The code wasn’t run from my platform, i not able get sFTP connection result.
I’m using webMethod ver 8.2 SP1.
I have hit with error on below, may i know what value should i give for privateKey? Is that the full path pointed to the Private Key that i have stored at (can give example)?
ftpUserName, // String userName
prvkey, // byte privateKey
null, // byte publicKey
PassPhrase ); // byte passPhrase
Currently in my webMethod has one sFTP module (BW_Utilities.ftp.sftp:login) which is only serve for (Host, Port, UserName & Password), but then for my project i only allow to use Private Key connection due to security reason. Hope my doubt here can be solve. Very much appreciate your help.