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

''No such file or directory' after successfull of 'cmake' generating from source for libssh 0.8.2 in c++?

I have libssh 0.8.2 and cmake 3.12.2. The build is done successfully by using generate option in cmake. There is no ssh.lib file generated after this process by cmake, but and some files (ALL_BUILd, INSTALL,ssh_shared,ZERO_CHECK) were…
user10330249
2
votes
1 answer

"Kex error : did not find one of algos diffie-hellman-group1-sha1- in list" when connecting with sshlib

I'm implementing SFTP C++ in Windows to transfer some files. I have downloaded and attached all the libraries for this (libssh 0.5.0) by using this . I found some code from this author : Desphilboy. But it showing errors as: Error: Kex error :…
user10330249
2
votes
1 answer

Obtaining status from a remote executed process

I am invoking a remote process using libcURLs libssh2. The remote server is a Linux (CentOS) and the client is an Windows XP. Also am using Qt 4.6 and C++.The processes are some third party applications which will be invoked by libssh2 I am able to…
liaK
  • 11,422
  • 11
  • 48
  • 73
2
votes
1 answer

How to use libssh's SCP with ssh::Session

I am using libssh's C++ wrapper (libsshpp.hpp) and I'm trying to call ssh_scp_new for an SCP routine by giving it my ssh::Session variable but I get the following error: cannot convert ‘ssh::Session’ to ‘ssh_session {aka ssh_session_struct*}’ for…
Simog
  • 193
  • 3
  • 13
2
votes
0 answers

Finding out the supported SSH compression of a session with libssh

Recently I've been dabbling with networking and specifically libssh. I've been connecting to a server, and everything works pretty well but now I would like to find out some kind of way to discover what (if any) compression a server uses. I've tried…
Ernst
  • 23
  • 2
2
votes
1 answer

Use libssh2 to connect to SFTP server that requires a Key AND Password

I have been tasked with connecting to a windows based SFTP server that requires a key AND password to connect to it. I have worked out how to connect with a password or Key, but I can't work out how to do it with both. Connect via Key: //connect to…
Mike
  • 511
  • 3
  • 10
  • 28
2
votes
1 answer

phpseclib vs libssh2

In one of my projects am going to connect with alot of servers remotely through SSH using PHP. There are two solutions for it, phpseclib and the ssh2 PECL Extension for PHP which is based on the libssh2 library. So can anyone please compare both and…
Samuel Katz
  • 24,066
  • 8
  • 71
  • 57
2
votes
1 answer

libssh how do I know if there has data to read?

I am using libssh. After calling ssh_channel_write, I have to know whether there has data to read. (But I don't want to retrieve data.) If there has no data to read (for example, after 10s), I will call ssh_channel_write again. Both of…
Caesar
  • 971
  • 6
  • 13
2
votes
0 answers

How to build libssh on windows 64 bit and visual studio 2015 ultimate?

After successfully using cmake-gui configure and generate commands to generate nmake makefile, this error appears after running nmake command from VS2015 x64 Native Tools Command Prompt: libssh/priv.h(68): fatal error C1189: #error: "no snprintf…
2
votes
2 answers

How to include libssh to my project

I've installed libssh following the instructions and even though everything seems to be OK my compiler still returns the error "file not found" in the line "#include ". I guess it has something to do with directories or links (I have "make install"…
P. Lacosta
  • 49
  • 1
  • 1
  • 4
2
votes
2 answers

Problems compiling an external library on linux

So I am trying to compile the libssh2 library on linux, but when I try to compile the example it comes up with a lot of errors, and even though I include the headerfile it asks for, it still asks for it. Here are the error messages and the…
user328570
2
votes
1 answer

Attaching a static library to an iphone/ipad application

which is the best approach to include a static library with into an application for iPhone or iPad? I could choose to compile the library supplying right platform and building a library file with the ar utility and then add as a framework to the…
Jack
  • 131,802
  • 30
  • 241
  • 343
2
votes
0 answers

Using libssh C++ wrapper

Anyone here have experienced libssh C++ wrapper yet? You can get here I'm using 0.6.3 version . I follow INSTALL instruction in downloaded file to build libraries. Then I try to compile the example in examples directory libsshpp.cpp #include…
Nhan Ly
  • 95
  • 1
  • 4
  • 12
2
votes
1 answer

Cross-compiling for ARM while linking to libssh - libssh.so: file not recognized

I want to know if it is possible to link my application to libssh while cross-compiling with Sourcery toolchain for ARM. My host system is Ubuntu x86_64 :~/c/ssh$ arm-none-linux-gnueabi-gcc ssh.c -o arm `pkg-config --cflags --libs libssh` cc1:…
01BTC10
  • 506
  • 3
  • 9
  • 19
2
votes
0 answers

Forward all data over a QTcpSocket

I have a ssh tunnel setup using libssh. However, this does not bind it to a local port, so what I need essentially is to forward all data received on a port to the ssh channel. However, when I do this: QTcpSocket* socket = new…
Rohan Prabhu
  • 7,180
  • 5
  • 37
  • 71
1 2
3
14 15