libssh

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

喜夏-厌秋 提交于 2019-12-06 11:10:54
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 fine. Steps I have taken: apt-get install libssl-dev apt-get install libssh-dev cd /var wget http://www.libssh2.org/download/libssh2-1.3.0.tar.gz tar -zxvf libssh2-1.3.0.tar.gz cd libssh2-1.3.0 ./configure make make install SSL support works fine, by the way. I must have done something wrong with libssh I have also tried: ./configure --with-libssh2 .

How to establish a simple ssh connection with c++

╄→гoц情女王★ 提交于 2019-12-06 05:45:21
问题 I am trying to make a c++ program witch will connect to an ssh server (my laptop). The server is ok because I can get connected via putty. Although the program I wrote so far can not. In my code I am using the library libssh.h and for development I used visual studio 2015. The error I get is: crypt_set_algorithms2: no crypto algorithm function found for 3des-cbc I haven't found anything so far so I hope to your help. The code I use: #include <libssh/libssh.h> #include <stdlib.h> #include

Compiling a c program on a 64 bit machine with a 32 bit binary

为君一笑 提交于 2019-12-04 22:17:44
I am currently trying to use the libssh.dll library to implement a c program that shall connect to remote computers.I am using gcc to compile the program. When compiling this program, I received this error: i386 architecture of input file 'libssh/bin/libssh.ddl' is incompatible with i386:x86-64 output I tried compiling the program with the -m32 flag, but then i receive these errors: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-cygwin/4.8.2//libgcc_s.dll.a when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-cygwin/4.8.2//libgcc.a when searching for

Dyld: Library not loaded

江枫思渺然 提交于 2019-12-04 14:36:12
I am trying to link the library libssh2.1.dylib to my iPhone Xcode project but I get this error when I try to link it. If I don't add this as a framework I get Symbols not found error. Now /Users/Matt/Documents/Development/iPhoneApps/Portscanner/lib/libssh2.1.dylib is not the correct pathway to that file. I downloaded the library off the internet and its the pathway of the Author's computer. I have the file located in a totally different place. How do I change the pathway reference? Heres the error I get: dyld: Library not loaded: /Users/Matt/Documents/Development/iPhoneApps/PortScanner/lib

How to copy a file in C/C++ with libssh and sftp

天大地大妈咪最大 提交于 2019-11-30 14:46:56
I'm posting here because I need help with some code relating with libssh . I read all the official documentation here but still I don't understand the things i need to do if someone can en light me I would be pleased. Actually I want to copy a file from a client to a remote server but I don't understand how to do it with the library libssh and the function sftp in libssh. The situation is that: The ssh session is open and the sftp session is open too, I can create a file and write in it from the client to the server with the integrated function of lib ssh. I did not find an easy way to copy a

How to use libssh in VS10

霸气de小男生 提交于 2019-11-28 18:57:55
How can I implement libssh as a library my compiler will recognize? I'm using Visual Studio 2010 C++, and I've included the Boost library with no problems, but the process I did with Boost is strange, I can tell libssh will be different. I really don't want to do a DLL file, I want one executable, however I know that DLL files can be embedded inside of executables through .rc scripting. (Then extract and load) I've never had to include a library except for Boost into any of my projects, I feel like I should really know how to do this. Please note this is libssh not libssh2. Thanks. Even if the