This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

AW: [bulk] - sshd - sftp problem (perl demo)




Hi,

> Von: Sisyphus
> Gesendet: Dienstag, 27. Juli 2010 07:37
> An: cygwin
> Betreff: [bulk] - sshd - sftp problem (perl demo)
>
> Hi,
>
> I have the following perl script that attempts to connect (from native
> Windows) to an sshd server (either localhost, which is a Cygwin sshd server,
> or a remote linux host)
> and create a Net::SSH2::SFTP object.
>
> ###############################
> use warnings;
> use Net::SSH2;
>
> my ($host, $user, $pass) = qw(blah blah blah);
>
> my $ssh2 = Net::SSH2->new;
> die "can't connect" unless $ssh2->connect($host);
>
> print "Connected\n";
>
> die "can't authenticate"
>  unless $ssh2->auth(username => $user,
>                     password => $pass);

Have a look at
http://prlmnks.org/html/569657.html
they mentioned that auth does not work

# authorize
# this works but I use keys below
# $ssh2->auth_password('z','foopass') or die "Unable to login $@ \n";

#this dosn't work
#$ssh2->auth(username=>'z', interact => 1);

Maybe it helps.

Have fun
Norbert

--------------------------------------------------------------------------
Dipl. Phys.
Norbert Zacharias
Wind Measurements & Power Curve Measurements
DEWI GmbH
Ebertstrasse 96
26382 Wilhelmshaven
Germany


Tel.:   +49 4421 4808 876

Fax:    +49 4421 4808 843


Email:  N.Zacharias@dewi.de
Home:   http://http://www.dewi.de

DEWI GmbH - Deutsches Windenergie-Institut, Wilhelmshaven
Commercial Register No.: Amtsgericht Oldenburg, HRB 130241
Managing Director: Jens Peter Molly
Chairman of the supervisory board: Ministerialrat Dr. Niels Kämpny

P Please consider the environment before printing this email.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]