Re: !!!Urgent Help with SFTP in C++/Shell !!!



Hello Shekhar,

'expect' can help

Monday, July 31, 2006, 10:16:12 PM, you wrote:

SK> Hi!

SK> I am new member to this group. Hi to all and thanks for having me in.

SK> I am stuck with some unusual situation and am seeking urgent help.
SK> We have a backend server in C++ on Solaris 5.9 . The need is to
SK> intiate a sftp/scp to a remote location. We have the login and
SK> passwords set up. I know for non-interactive SFTP/SCP2 sessions we can
SK> exchange RSA/DSA keys. But that is not doable in my current business
SK> situation between the Prod Support, the other business entity to which
SK> we are ftping the files and out IT team.

SK> Is there a way I can pass the password to the scp session? I tried few
SK> things that are usually doable in ftp(plain old non scure ftp) like
SK> passing the password in batch etc but the same doesnot work for SFTP.

SK> Is there any way I can create a process that can pass the password to
SK> the scp command?

SK> Any perlsript(basic perl without net::sftp or other packages [sorry!
SK> for the constraints but relations with prod support are not very
SK> great] and shell script that can handle this is also possible)

SK> Any help or suggestions in this regard great!!!

SK> Thanks all

SK> Shekhar


--
Best regards,
Ed mailto:stealth@xxxxxxxxxxx