Questions tagged [libssh]

libssh is a mulitplatform C library implementing the SSHv2 and SSHv1 protocol on client and server side.

libssh is a C library that enables you to write a program that uses the SSH protocol. With it, you can remotely execute programs, transfer files, or use a secure and transparent tunnel for your remote programs. The SSH protocol is encrypted, ensures data integrity, and provides strong means of authenticating both the server and the client. The library hides a lot of technical details from the SSH protocol, but this does not mean that you should not try to know about and understand these details.

libssh is a Free Software / Open Source project. The libssh library is distributed under LGPL license. The libssh project has nothing to do with "libssh2", which is a completely different and independent project.

libssh can run on top of either libgcrypt or libcrypto, two general-purpose cryptographic libraries.

218 questions
3
votes
1 answer

libssh server failed to import private RSA host key

While attempting to get a libssh server running in linux, I am getting caught at the Error Listening to socket: Failed to import private RSA host key. I was using two examples as references.…
DocSpiegel
  • 101
  • 11
3
votes
1 answer

libssh - send request multiple times and read answer from channel

I have created one session and one channel. A request (ssh_channel_request_exec) is supposed to be sent about every second and I want to read the answer (ssh_channel_read) to this request. However, I could not find an example on how to make multiple…
Ires Mari
  • 59
  • 8
3
votes
1 answer

Dyld: Library not loaded

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…
iiyanx7
  • 91
  • 2
  • 5
3
votes
2 answers

Whats the difference between armv6 and i386?

I am trying to link libssh2.dylib (a 3rd party library compiled by Matthew Wilkinson using libssh2 library from http://www.libssh2.org) to my xcode project but when I try the following code: const char * libssh2_version(int…
iiyanx7
  • 91
  • 2
  • 5
3
votes
0 answers

libssh and multi-threading

I was wondering if libssh supports multi-threaded applications. In my C++ code, I create a SSH session which will be shared among multiple threads. Each thread requests a shell, run a command and calls ssh_channel_read_timeout in a while loop to…
ManiAm
  • 1,759
  • 5
  • 24
  • 43
3
votes
2 answers

Who can build a libssh2.a for iPhone

Who can build a libssh2.a for iPhone it's something about cross compilation I totally Don't know how to Set it rightly What I want to use is sftp client on iPhone anybody did this ? Can you share it?
aelam
  • 2,796
  • 2
  • 27
  • 32
3
votes
1 answer

Opening channel to localhost with libssh

I'm working on a program that creates a reverse SSH tunnel to a middleman server so that computers in a local network, to which a direct connection is not possible, can still be accessed from outside that local network. I have chosen for the libssh…
larzz11
  • 1,022
  • 2
  • 11
  • 24
3
votes
1 answer

libssh logging callback ssh_set_log_callback()

I am writing an application which uses libssh, which logs to stderr by default. I would like to capture the logging to so I can do something useful with it. Libssh provides some functions seemingly for this purpose, but I can't seem to get them to…
JoGoFo
  • 1,928
  • 14
  • 31
3
votes
0 answers

How to use libssh as server?

I am working on a Windows version of a server application that communicates with a web application. The web application originally worked with a Linux server, and would SSH into Linux to execute commands on the server. My plan is to build a C++…
Mitch
  • 519
  • 2
  • 7
  • 16
2
votes
1 answer

static library for libssh causes unresolved symbols in vc10

I have a C++ dll project in visual studio 10 that I am trying to use libssh for. I would like to statically link the libssh functionality. When I use the non-static libary and include the dll during runtime, the code compiles and executes as…
kevincw01
  • 69
  • 2
  • 8
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

ssh gateway in python - colors available?

I am using python bindings for libssh2 to connect to SSH2 server programmatically. The received output should be forwarded to a remote server and displayed there. The code below works correctly, but it displays the result in monochrome. How can I…
johndodo
  • 17,247
  • 15
  • 96
  • 113
2
votes
1 answer

Using a Objective C framework inside a Xcode Swift Project

I want to integrate below Framework to my swift project so that I can use LibSSH dynamic port forwarding within my swift app Here is github repo of Object C framework https://github.com/mconintet/SDF My project is just a simple WKWebView app in…
CodingWithRoyal
  • 1,006
  • 1
  • 6
  • 15
2
votes
1 answer

How to avoid compressing of image, audio and video files downloaded from remote ssh using libssh scp command in c++?

I am trying to download few files stored on a remote machine. Those files can be either text files, image files (of jpeg,jpg form), video or audio files. Text files are downloaded successfully without issue and I am also able to open it as well in…
CodeHunter
  • 2,017
  • 2
  • 21
  • 47
2
votes
1 answer

Copying a file with libssh

I am trying to write a simple program (toy example) that copies a file from a remote host to the local machine. It works when I try to copy a txt file, but not for files like mp4. Here is my code, which is basically parts stitched together from the…
Leta
  • 331
  • 1
  • 4
  • 16
1
2
3
14 15