Questions tagged [libssh2]

A client-side library that implements the SSH2 protocol.

A client-side library that implements the SSH2 protocol.

More information here.

274 questions
21
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
  • 8,320
  • 16
  • 74
  • 124
19
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
  • 191
  • 1
  • 1
  • 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
  • 31,944
  • 94
  • 238
  • 411
16
votes
2 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
  • 337
  • 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,458
  • 3
  • 28
  • 34
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
  • 19,364
  • 4
  • 54
  • 64
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
  • 34,956
  • 68
  • 168
  • 266
7
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
  • 191
  • 2
  • 14
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
  • 24,043
  • 14
  • 77
  • 118
6
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
  • 331
  • 4
  • 14
5
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
  • 91
  • 1
  • 8
5
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
  • 3,626
  • 16
  • 33
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
  • 880
  • 4
  • 18
  • 41
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
  • 654
  • 3
  • 8
  • 20
5
votes
2 answers

ssh2_exec not executing simple command

I'm having a nightmare of a problem with ssh_exec() refusing to execute a command in Windows. Here is my code :
user2140392
  • 59
  • 1
  • 5
1
2 3
18 19