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

libgit2 cmake issue using libssh2 :LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of the default search path

I am trying to build source of libgit2 on windows 8 using visual studio command prompt 2010. I have also compiled & install libssh2 source successfully on machine. libssh2 installed path : C:\Program Files (x86)\libssh2 Whenever I am executing…
Monty
  • 71
  • 1
  • 13
2
votes
1 answer

PHP ssh2_shell execute command and get response

I am connecting to an ssh server and using ssh2_shell to create an interactive bash shell. The problem I have is how to send a command to the shell and get the response for the command accurately. This is what I am currently doing: $stream =…
Ozzy
  • 10,285
  • 26
  • 94
  • 138
2
votes
0 answers

Haskell libssh2 module throws ERROR_KNOWN_HOSTS

I am trying to ssh to my local machine using libssh2-hs module. The command i used is, runhaskell ssh-client.hs command sk localhost 22 ls And it throws, ssh-client.hs: ERROR_KNOWN_HOSTS When i run ssh client as, ssh sk@localhost it goes through…
user2879704
2
votes
2 answers

PHP SSH2 operations failing when attempting to upload file to server

I am currently struggling with using the SSH2 built-in libraries for PHP (running version 5.5). I am trying to upload a file to an SFTP server as the title states however I keep getting a "stream operation failed" error message. After attempting to…
user3498133
  • 195
  • 3
  • 15
2
votes
2 answers

NMSSHSession uploadFile EXC_BAD_ACCESS

I'm using NMSSH to try to upload a file. I am able to connect and authenticate successfully however the upload hangs and I get the EXC_BAD_ACCESS error on the uploadFile() function call. I know that it usually means that I'm trying to access an…
Przemek Lach
  • 1,348
  • 2
  • 19
  • 42
2
votes
1 answer

How to build libssh2 for arm64 bit support iOS

I am trying to make build for libssh2 to support arm64 with following steps as in this link. First of all I am going on path where I have downloaded example code as in above link, then running script file in terminal "./build-all.sh libgcrypt" as…
Nikunj
  • 987
  • 11
  • 25
2
votes
2 answers

Use pty with ssh2 in node to execute command with sudo

I need to launch a command with sudo over ssh using npm ssh2 module for node.js; only reading module's documentation I can't figure out how to use the pty option: ssh.on('ready', function() { //not working sudo command: ssh.exec('cd…
Cereal Killer
  • 3,387
  • 10
  • 48
  • 80
2
votes
0 answers

Multi-user Interaction with a Linux back-end using a PHP Web Interface

I am working on a web interface that allows users to run programs on a Linux machine and appeal to the smarter minds on here for some help. Summary My intention is to create a web environment (behind a login) where webusers input or modify basic…
stacked
  • 277
  • 3
  • 9
2
votes
1 answer

SSH2 in php, wamp,windows

I have to connect sftp link and have to put data in sftp link. I want to connect sftp link through function ssh2_connect. My trouble is that whenever i am running that function i am getting error Call to undefined function ssh2_connect(). Then I…
Ank
  • 73
  • 2
  • 7
2
votes
1 answer

libssh2 cannot read more than 65,000 bytes

Im using libssh2 in a Qt front end. I have set callbacks to handle receiving and sending by calling libssh2_session_callback_set() (the callbacks read/write data from/to the QTcpSocket). My app can login successfully using keyboard prompt method.…
OverTheEdge
  • 749
  • 1
  • 11
  • 17
2
votes
1 answer

libssh2: What to do with unsolicited data from the ssh server?

I have a program that uses libssh2 to administrate some Linux boxes. It's fairly straightforward: It connects to the Linux boxes, downloads a config file, then keeps the libssh2 connection open (and idle) so that if the user presses buttons on the…
Jeremy Friesner
  • 70,199
  • 15
  • 131
  • 234
2
votes
2 answers

ssh2: Unable to initialize module

I install ssh2 on my server but when i check the result is : PHP Warning: PHP Startup: ssh2: Unable to initialize module Module compiled with module API=20100525 PHP compiled with module API=20090626 These options need to match in Unknown…
adi wijaya
  • 31
  • 1
  • 2
2
votes
0 answers

Initializing sftp subsystem via libssh2

I am trying to get a file from a remote sftp server in a php script. I'm using the libssh2 library anI have been able to 1) open a connection to the ssh server and 2) authenticate properly. I'm hitting a wall on creating an sftp resource for use…
Stephen
  • 21
  • 1
2
votes
1 answer

PHP 5.4 php_ssh2 dependend library libssh2.dll can't register in window server 2008-x64

Recently I deploy php 5.4.17-nts- version on windows server 2008 -x64 R2 standard. I download php5.14.17 from http://windows.php.net/download/ and php extension ssh2 (php_ssh2-0.12-5.4-nts-vc9-x86.zip) from…
user553710
  • 210
  • 2
  • 9
  • 16
2
votes
1 answer

C++ Libssh -sever/client file transfer over the lan example

Newbie here basically I'm trying to build a sever/client file transfer application that transfers files and folders over the lan. Does any one have any sample application that I can look into that uses C++? Libssh examples are all in C which I…
user2557850
  • 119
  • 1
  • 3
  • 14