Subject: Re: how can I run the example in libssh2 tarball

Re: how can I run the example in libssh2 tarball

From: Ian jonhson <jonhson.ian_at_gmail.com>
Date: Mon, 6 Jul 2009 15:02:58 +0800

I have tried with ip address but still not work.
For example,

$./sftp 127.0.0.1 user user-pass ../Makefile /tmp/
Fingerprint: A2 16 A1 CC DD DD 1B 72 8A 5A E7 8C 06 F4 90 47
Authentication methods: publickey,gssapi-with-mic,password
libssh2_sftp_init()!
libssh2_sftp_open()!
Unable to open file with SFTP
all done

any help?

On Sun, Jul 5, 2009 at 8:11 PM, Daniel Stenberg<daniel_at_haxx.se> wrote:
> On Sun, 5 Jul 2009, Ian jonhson wrote:
>
>> $ example/simple/sftp localhost user userpasswd /tmp/
>> failed to connect!
>
> I believe most if not all examples require you to specify an ip address, not
> a host name.
>
> --
>
>  / daniel.haxx.se
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-07-06