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

Downloading CVS repository generates a server connection error

I have an "org.eclipse.team.internal.ccvs.ssh2..." error leading to a Connection Timeout downloading a CVS repository using extssh. I have tried installing different versions of Eclipse, still the same Connection Timeout issue exists. I can download…
Manojkumar
  • 1,351
  • 5
  • 35
  • 63
2
votes
2 answers

stream_context_set_params not works with ssh2.sftp wrapper

I want to use functionality like here. Please check the code bellow function notify ( $notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max ) { echo "Runned \n"; }; $ctx =…
Stanislav
  • 33
  • 6
2
votes
0 answers

The recommended way of reading data in a multi-channel application

What is the recommended way of using libssh2 to implement the “read data from whichever channel has it first” primitive? E.g. I have a simple two-tab terminal program, where each tab corresponds to a LIBSSH2 channel. I want to wait until ANY of the…
Ivan Shcherbakov
  • 2,063
  • 14
  • 23
2
votes
1 answer

Libssh2, building library with xcode

I'm using this project to attempt to use the libssh2 library with iOS. The readme does not explain much, however, and I could use some help building the library. I opened up the example project in xcode, but I am confused about this part of the…
davis
  • 1,911
  • 6
  • 26
  • 50
2
votes
2 answers

Obtaining a pointer to a class method so that it can be passed as a callback to a C function

I'm using libssh2 and have a callback function defined outside my SSHWrapper object: static void kbd_callback(const char *name, int name_len, const char *instruction, int instruction_len, int num_prompts, const LIBSSH2_USERAUTH_KBDINT_PROMPT…
whisperstream
  • 1,897
  • 3
  • 20
  • 25
1
vote
2 answers

How to tell when a transfer is complete with libssh2?

I'm using libssh2 for scp file transfer which in general is working. However, I'm currently trying to read some file from a weird SSH server which doesn't support to retrieve the meta data of the file upfront. Thus I don't know how big the file…
signpainter
  • 720
  • 1
  • 7
  • 22
1
vote
1 answer

Retrieving file names from libssh2_sftp_readdir_ex()

I am working on a C++ code that I need to list all files and directories in a path by using the libssh2_sftp_readdir_ex() function of LIBSSH2. However, I tried to run the example (sftpdir.c) and I noticed that the code prints all files and…
fborges22
  • 313
  • 3
  • 14
1
vote
0 answers

LIBSSH2 with LIBCURL C++ manual compile

I am developing an monolithic C++ app that uses the LIBCURL to make some file transfers via SFTP protocol. However, in my app I need always to manually build the static libs of the libcurl and libssh2. I made an shell script in order to automate the…
fborges22
  • 313
  • 3
  • 14
1
vote
0 answers

Getting files from sftp server using php and ssh2

Recently, for a project, i have been trying to get a few files from a sftp webserver using ssh2 extension and php. So far i've managed to connect to the server and list all the files on a specific directory, but when i try to get them with…
1
vote
1 answer

PHP5, use SSH2 functions to DL all files in a folder then delete them from remote server

I'm trying to DL a file from one server to another. $ftpHandle = ssh2_connect('ftp.remoteServer.net', 22) ssh2_auth_password($ftpHandle, $userName, $password) After a successful connection and login, I run this: $dir = "/dl"; $handledir =…
Shackrock
  • 4,601
  • 10
  • 48
  • 74
1
vote
1 answer

MacOS Dynamic Port Forwarding (ssh -D)

I want to do ssh -ND 888 root@0.0.0.0 functionality in my macos app can someone please suggest any idea ? I tried with libSSH but not helpful I want to do SOCKS5 Proxy Swift or Objective-C both okay, just want something working... Thanks
CodingWithRoyal
  • 1,006
  • 1
  • 6
  • 15
1
vote
1 answer

Exception running Embarcadero project with libssh2

I face the following problem: In Embarcadero project (either exe or dll) there is an exception when I call the libssh2_session_handshake() that establishes and ssh communication between 2 hosts. I have built an .exe in Embarcadero RAD XE5 C++ (the…
1
vote
0 answers

PHP-7.0 SSH2 Module does work in command line but not on website

I want to install SSH2 on my Server and I did it via PECL. I used PECL because I want ssh2 version 1.2 and not the default apt version which is 0.12. Unfortunately, I somehow can't use it I have following file: test.php
peter12908
  • 21
  • 2
1
vote
1 answer

Error Installing "ssh2-python" on windows

I am trying to install ssh2-python in windows via pip command. I am getting the following error. Can anyone of you let me know what this error is and how this can be fixed. Collecting ssh2-python Downloading…
Sujesh Surya
  • 143
  • 1
  • 1
  • 12
1
vote
0 answers

Execute script on remote Machine from my native iOS App. (Objective-C)

I am working on native iOS App (SSH Client) and I am connecting to the remote servers via SSH using libssh2. I want to run one script to the remote servers using SSH. So, How to execute the script on remote server?
ios23
  • 353
  • 2
  • 8