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
1
vote
1 answer

Libssh2: prevent background task from being killed

I am writing a program that logs into another system via SSH using the libssh2 library. Once logged in, I execute a command using: libssh2_channel_exec(sshchannel, command) The command executes okay. However, once I close the channel the process…
user4172036
1
vote
1 answer

Libgit2 and libssh2 CMake package 'libssh2' not found

So trying to CMake libgit on windows, ive build a valid libssh2 but I'm getting this error when compiling libgit checking for module 'libssh2' package 'libssh2' not found LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of the…
Saragan
  • 75
  • 3
  • 10
1
vote
1 answer

ld: fatal: relocations remain against allocatable but non-writable sections, when compiling libssh2 on solaris

I am compiling libssh2 version 1.4.2 on a Solaris 10 machine. It gets most of the way through the compilation, then I get this: libtool: link: gcc -shared -fPIC -DPIC -Wl,-z -Wl,text -Wl,-M -Wl,.libs/libssh2.so.1.0.1.exp -Wl,-h -Wl,libssh2.so.1 -o…
harmic
  • 28,606
  • 5
  • 67
  • 91
1
vote
0 answers

Is libssh2 has a swift wrapper?

I want to build a SFTP app for ios,and there are some object-c ssh libs.But my project is write in swift,so I want to know is there ssh lib write in swift.
tang
  • 55
  • 6
1
vote
0 answers

is there any possible for user login and then root login with the same connection using ssh2 php

I am trying to connect server using ssh2 functions with php. server connection using $server_con = ssh2_connect("server","portno"); authenticate the connection like ssh2_auth_password($server_con,"username","pwd"); i can use this ssh2 auth…
Test
  • 11
  • 2
1
vote
1 answer

curl SFTP rename when destination path exists

I have to regularly update a file on a server using SFTP transfer and libcurl. From many sources and personal experience I discovered that rename command using curl with SFTP fails when the destination path points to already existing file. But sftp…
user2026095
1
vote
1 answer

Unusual VS2010 Link Error LNK1104: cannot open file 'libssh2d.lib'

I am trying to work with libssh2 libraries in VS2010. I am getting a weird error of LNK1104: cannot open file 'libssh2d.lib'. I have clearly included the libraries in the Project Properties->Linker->General->Additional Library Directories. There are…
eecs
  • 141
  • 2
  • 13
1
vote
1 answer

libssh2 lib with ipv6 not working

In my iOS application I am using libssh2 library. I am trying to ssh with ipv6 address, But socket is not creating and getting nil socket. It's working fine with ipv4 address. static CFSocketRef _CreateSocketConnectedToHost(NSString* name, UInt16…
Nikunj
  • 987
  • 11
  • 25
1
vote
1 answer

undefined ssh2 in php with apache on debian

Debian : 7.4 I have some difficulty to make ssh2 work with php5. i didn't find a solution on other topics and i search a LOT ! all has been well installed according to debian outputs but it still doesn't work. This is what i'v done Package installed…
nurb
  • 11
  • 1
1
vote
1 answer

Connection refused in sftp server

I am trying to use localhost as SFTP server. I'm using Jsch library of Java to implement SFTP with SSH2. The following code upload a text file to a directory on local machine with sftp. But I cannot connect to localhost. import…
Sam
  • 335
  • 1
  • 6
  • 13
1
vote
1 answer

Create interactive ssh2 terminal window

Code below works, it perfectly returns the user name that I connected with to the SSH server. Is it possible to create some sort of interactive shell where I can send the commands myself. Just like a black terminal window on a Mac for example. I've…
Beeelze
  • 503
  • 1
  • 9
  • 25
1
vote
0 answers

unable to send large file using ssh2_scp_send() function

I am using ssh2_scp_send() function to send files on my server. small file with size(less than 10mb) I am able to send successfully but if the file size is greater than 10 mb then it is giving error : ssh2_scp_send(): Failed copying file in…
Ganesh Patil
  • 670
  • 1
  • 5
  • 22
1
vote
1 answer

XCode Build Failure - aclocal [/share] files missing

I'm trying to build an XCode project, and am getting the following error when trying to build: ... Building for x86_64 i386 armv7 armv7s arm64 Building libssh2 for iphonesimulator7.1 x86_64 Please stand…
Jordan Foreman
  • 3,848
  • 7
  • 40
  • 65
1
vote
1 answer

Multiple connections with ssh2_auth_pubkey_file

I'm trying to open multiple connections with ssh2_auth_pubkey_file to different servers using the same public & private keys. When my script tries connecting to the 2nd server I get: PHP Warning: ssh2_auth_pubkey_file(): Authentication failed for…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
1
vote
1 answer

PHP SSH2 ssh2_connect

So I have taken a example from php.net to see php ssh2 workings so the code is
user3786515