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
3
votes
1 answer

Installing SSH2 for PHP to run on a Xampp Apache server on a OSX 10.9.1

I am running Xampp on a Mac with OS X 10.9.1 and I am trying to develop a web page that calls a PHP script through an Ajax call. Xampp is used here for development purposes and it is not intended to form the backend of an online page. A PHP script…
Mona Paun
  • 386
  • 3
  • 8
3
votes
1 answer

libssh2 public key authentication only requiring passphrase if key request is accepted

I'm using libssh2 to make a networking program more secure. I'd like my program to authenticate in as similar way to the OpenSSH client ssh(1) as possible. The OpenSSH client will only ask for passphrases for keys that are actually accepted by the…
szmoore
  • 924
  • 10
  • 18
3
votes
3 answers

How to send a file using scp using python 3.2?

I'm trying to send a group of files to a remote server through no-ack's python byndings for libssh2, but I am totally lost regarding the library usage due to the lack of documentation. I've tried using the C docs for libssh2 unsuccesfully. Since I'm…
Limozilla
  • 31
  • 1
  • 3
3
votes
1 answer

sudo with libssh2

user1469439
3
votes
1 answer

phpseclib or ssh2 pecl extension

My post from yesterday: https://stackoverflow.com/questions/14296006/phpseclib-sftp-port-number Ok, so yesterday I started learning about SSH / SFTP with php. I searched a bunch of forum posts and surmised that i needed to download the…
user1037355
3
votes
2 answers

SSH Keyboard Interactive authentication

I currently try to extend an libssh2 Wrapper in Objective-C. I'm trying to implement the libssh2_userauth_keyboard_interactive method. My problem is the response callback. I found this implementation on the net that bypasses the "real" interactivity…
Julian F. Weinert
  • 7,474
  • 7
  • 59
  • 107
2
votes
3 answers

SSH2 PHP Extension

I have been trying for a while to get the SSH 2 extension for php installed on my CentOS 5.6 x64 server. I started the server from scratch and here are the steps I have taken install and configure APF install apache install php install mysql add…
Beamer180
  • 1,501
  • 5
  • 19
  • 25
2
votes
2 answers

libcurl with libssh2 - one or more libs available at link-time are not available run-time

I get the following error when trying to ./configure libcurl 7.22.0 one or more libs available at link-time are not available run-time. Libs used at link-time: -lssh2 -lssl -lcrypto -lrt -lz When I ./configure with --without-libssh2 it works just…
natli
  • 3,782
  • 11
  • 51
  • 82
2
votes
1 answer

How can achieve Dynamic Forwarding(SOCK) in iOS? - libssh2 not supported what I use as alternative?

I want to accept SOCKS5 clients like "ssh -D" does. Same like in Termius app(https://apps.apple.com/in/app/termius-ssh-sftp-client/id1176074088?mt=12) there is option to add Proxy Details(host, username & Pass). Then it will establish connection to…
2
votes
0 answers

libssh2: `libssh2_channel_forward_listen_ex` returning "Unable to send global-request packet"

I am trying to do local port forwarding with libssh2. I have a server (docker container) with openssh running a TCP echo service. I am using password login. I can ssh into the machine fine. I am able to use ssh -L 7894:127.0.0.1:1794 server to do…
Daniel
  • 3,243
  • 2
  • 32
  • 31
2
votes
1 answer

Flutter ssh2 2.2.3 package build errors (ssh2:compileDebugJavaWithJavac)

I try to add connectivity to my Flutter project, my main goal is to support Android first. When I add ssh2 package I get error. Steps I follow: flutter pub add ssh2 for which output is: Changed 3 dependencies! flutter pub get Push 'play' button the…
Curious
  • 23
  • 3
2
votes
2 answers

PHP adding new .dll makes Apache server unable to start

I am trying to add an extension to my PHP. I have the file - libssh2.dll - in the appropriate directory (as listed in my php.ini file) and made sure the extension=libssh2.dll. I also copied the .dll file to system and system32 folders as other…
Albert
  • 135
  • 1
  • 1
  • 4
2
votes
2 answers

PHP 5 SSH2 functions

I have installed and enabled SSH2 in my CentOS WHM/CPanel server, here is from PHP INFO: ssh2 SSH2 support enabled extension version 0.11.2 libssh2 version 0.18 banner SSH-2.0-libssh2_0.18 remote forwarding enabled hostbased auth …
Shackrock
  • 4,601
  • 10
  • 48
  • 74
2
votes
1 answer

API call libssh2_userauth_publickey_fromfile() fails

libssh2_userauth_publickey_fromfile() fails with error code -19 (LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED). I want to use Public key authentication method only (and not password based authentication). Authentication by password works fine. System:…
jainsha
  • 63
  • 5
2
votes
0 answers

How to increase upload speed using sftp with PHP?

In my project, I use sftp (https://www.php.net/manual/en/book.ssh2.php) to upload file to remote server. Code upload file: if (!$localStream = @fopen($localFilePath, 'r')) { throw new Exception("Unable to open local file for reading:…
Alex
  • 3,646
  • 1
  • 28
  • 25
1 2
3
19 20