Questions tagged [libssh2]

A client-side library that implements the SSH2 protocol.

A client-side library that implements the SSH2 protocol.

More information here.

292 questions
25
votes
1 answer

Neither libtoolize nor glibtoolize could be found

I'm trying to compile a .cpp file but I must install libssh2. I have downloaded the package from libssh2.org and when I enter: ./buildconf I'm getting: Neither libtoolize nor glibtoolize could be found! I don't know what to do, I have included in…
Zbarcea Christian
  • 9,367
  • 22
  • 84
  • 137
20
votes
8 answers

PHP Install SSH2 on Windows machine

I am trying to install this on a Windows+Apache machine. Documentation says that SSH2 requires the OpenSSL and libssh2 libraries. I have added this lines in my php.ini file: extension=php_openssl.dll extension=php_ssh2.dll and restarted Apache but…
LaYle
  • 201
  • 1
  • 2
  • 3
18
votes
1 answer

SSH Public Key Authentication with Libssh2 C++

I am working on a project where I am doing port forwarding to MySQL using libssh2 in C++. I've got it working for username/password authentication but I now want do it using public/private key authentication. The documentation for libssh2 is pretty…
Boardy
  • 35,417
  • 104
  • 256
  • 447
18
votes
3 answers

Connect to SFTP using PHP and private key

I have read article after article and just cannot find "the solution" that works for what I have. I am trying to upload files via SFTP using php scripting. I have connected using CyberDuck successfully, but I need to do this programatically. I have…
Joey Martin
  • 369
  • 1
  • 3
  • 11
9
votes
1 answer

Reverse Port Forward using libssh2 on iOS

I'm looking for some example code of a reverse port forward on iOS using libssh2. Here's a close example: Example code of libssh2 being used for port forwarding But I'd like it to be tailored to iOS and objective-C if possible. Straight C is fine…
Ralphleon
  • 3,968
  • 5
  • 32
  • 34
9
votes
3 answers

what is the major difference libssh vs libssh2?

I googled "libbssh vs libssh2" , couldn't find good explanation about the difference between of them. What is the major difference ? The main functionality that i need is copying files , which of the lib is recommended ?
LIOR
  • 149
  • 1
  • 12
8
votes
1 answer

libssh2 SFTP pipelining multiple files: sftp_read() internal error

I'm trying to reproduce a problem where when some of our clients can receive a wrong file contents while downloading with SFTP protocol. Based on our SFTP server (CrushFTP) logs they probably open multiple files in one session and then use some…
Tometzky
  • 22,573
  • 5
  • 59
  • 73
8
votes
1 answer

Compiling libssh2 on windows

Some one can help me to compile libssh2 on windows with Visual Studio 2017. The only things I found are too old and outdated. I downloaded libssh2 from github and run cmake libssh2 and then cmake -P cmake_install.cmake but can't find INSTALL file…
Samega 7Cattac
  • 253
  • 1
  • 3
  • 16
8
votes
4 answers

PHP ssh2_connect() Implement A Timeout

I am using the PHP ssh2 library, and simply doing: $ssh = ssh2_connect($hostname, $port); The problem is I want to set a timeout, i.e. after 5 seconds stop trying to connect. As far as I can tell the ssh2 library does not support a timeout on…
Justin
  • 42,716
  • 77
  • 201
  • 296
7
votes
1 answer

Trouble authenticating with SshUserKeyCredentials in libgit2sharp-SSH

Having some trouble authenticating with SshUserKeyCredentials using libgit2sharp-SSH: var co = new CloneOptions(); co.CredentialsProvider = (_url, _user, _cred) => new SshUserKeyCredentials { PrivateKey="C:\\path\\to\\private_key"…
Kim Lindqvist
  • 363
  • 4
  • 15
7
votes
2 answers

PHP - SSH2 SFTP Downloads With Progress

I feel this deserves a question as StackOverflow doesn't seem to have enough on the subject. I want to SFTP, using PHP with a Progress Bar I love progress bars. However, this time I want to do something a little different. I want to do the following…
Jimbo
  • 25,790
  • 15
  • 86
  • 131
6
votes
0 answers

Execute multiple commands sequentially with libssh2

I'm looking for a way to execute multiple commands sequentially. What I do right now is creating a mew channel for each command and close It. If I use just one channel I get an error that a channel can not be reused. But I'm not sure If this is the…
jjjzi
  • 199
  • 6
6
votes
1 answer

Using SSH authentification with libgit2

I am trying to authenticate against a git server with libgit2 using SSH keys. So far, this is working for URLs like ssh://myuser@host.domain:1234/dirs/repo.git, where my application accepts the URL as an argument. However, if I remove the username…
andreee
  • 4,459
  • 22
  • 42
5
votes
1 answer

Getting error when loading libssh2.dll

I m trying to install ssh2. So I put the libssh2.dll file windows\system32 folder than using cmd I m trying to load this file as meanion PHP Install SSH2 on Windows machine I wrote regsvr32 libssh2.dll After this I m getting following error. The…
kreya
  • 1,091
  • 5
  • 24
  • 52
5
votes
2 answers

PHP extension installed but not loading

I'm trying to install php's ssh2 extension, and having a little bit of difficulty. The file is there, it's just not loading into php. First, I've installed ssh2 with: aptitude install libssh2-1-dev libssh2-php (For what it's worth, I'm running…
user1383418
  • 664
  • 3
  • 8
  • 20
1
2 3
19 20