veeruch has asked for the wisdom of the Perl Monks concerning the following question:

hi PERLMonks,
Thanks to every body who responded and Great PERLMonks
Net::SSH::W32Perl is wroking Fine and I can connect to Host(AIX).
But how to use Password in Perl script,if iam using SFTP and SCP.
And where I can download Net::SCP for Active perl ,but I installed Net::SFTP.
if iam trying ppm install
http://theoryx5.uwinnipeg.ca/ppmpackages/Net-SCP.ppd cann't locate PPD files.

2006-07-07 Retitled by g0n, as per Monastery guidelines
Original title: 'SSH::W32Perl wroking and how to use SCP and SFTP'

  • Comment on SSH::W32Perl working and how to use SCP and SFTP

Replies are listed 'Best First'.
Re: SSH::W32Perl working and how to use SCP and SFTP
by shmem (Chancellor) on Jul 06, 2006 at 07:20 UTC
    How come Net::SSH::W32Perl is now working for you? What has been the solution to ssh on windows and ssh not working?

    I would avoid using passwords altogether, but use public key authentication (generate SSH keys, and place the public key on the server in the target account).

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      I remove the net::ssh related modules .
      I first instlled Net::SSH::W32Perl and install remaing Net::SSH related modules
      .i run the script that's it is wroking fine
      I think modules are not installed properly
      how to use The password with in script if iam using SCP,SFTP give me small piece of code
        Nice that you give feedback on how you solved your problem, as then your experience can be helpful for other monks.

        I can't give you code, but only point out errors in your code - general errors, that is. I do not use these modules, and I don't use Windows.

        cheers,
        --shmem

        _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                      /\_¯/(q    /
        ----------------------------  \__(m.====·.(_("always off the crowd"))."·
        ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      A reply falls below the community's threshold of quality. You may see it by logging in.
Re: SSH::W32Perl working and how to use SCP and SFTP
by qsl (Scribe) on Jul 06, 2006 at 06:43 UTC
    Veeruch,
    If perl is installed properly in your system, ppm install Net::SCP is morethan enough...
    Regards,
    qsl.
A reply falls below the community's threshold of quality. You may see it by logging in.