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

Trying to execute command on router. C++ & libssh

When I'm trying to run command on server (router) I get [C] Jan 3 05:32:16 ndm: bin::ndmc: invalid option "-c". Most of the code is taken from the documentation. There is the code: #include #include #include…
Ae_Mc
  • 140
  • 1
  • 5
0
votes
0 answers

How can I install libssh2?

I need to install a CMS, but this CMS requires the libssh2 library. When I try to install it according to the instructions, I get errors. Here I will give the places with errors: $ sudo tar zxvf libssh2-1.4.3.tar.gz $ cd…
Ben_r007
  • 69
  • 1
  • 1
  • 3
0
votes
2 answers

import libssh library in Visual Studio 2017

I'm currently trying to include the libssh library on Visual Studio 2017. I already downloaded libssh but I don't know exactly what am I supposed to do with cmake. Where should I include files in Visual studio?
bgabriel
  • 15
  • 6
0
votes
1 answer

Error when installing libssh build with make install

OS and CMake prehistory I'm trying to installlibssh on Debian GNU/Linux 9.5. I have successfully built the libssh source with cmake and put all the content inside build dir that I had created as advised in the install manual. (Note that I did not…
0
votes
2 answers

File returns NULL Value while using sftp_open() for copying file from local to remote using SFTP libssh in C++

I have Connected to the server using SFTP SSH in c++ and i have already copied files from remote to local. Now i'm trying to copy from local to remote, i read about this from this, but its not working. I wrote the following code. fr =…
user10330249
0
votes
1 answer

Copying a file from a server to client using Libssh: issues with assigning file copy destination path

I want to copy a file from a server to client,i have already connected the server and i can add some content in a particular file in the server. I have gone through this tutorials and this ,hence i wrote some codes based on the tutorials. but its…
user10330249
0
votes
0 answers

undefined reference to `_imp__ssh_new' for libssh

I am trying to create ssh connection from my windows 10 to ubuntu 16.04 Code: download.cpp #include "libssh.h" #include #include int main() { ssh_session my_ssh_session; int rc; int port = 22; int verbosity =…
Md Sajid
  • 131
  • 1
  • 1
  • 13
0
votes
1 answer

SSH client in C libssh rewrite in Java jsch

I have a simple SSH client which is written in C (libssh) and I need to rewrite the client in Java (jsch). Here is the C code: #include #include #include #include #include char TEST[] =…
0
votes
1 answer

libssh symbols not found error gcc

I am trying to build a simple SSH client from Wil Allsopp's pen testing book. Working on Mac OS High Sierra with gcc-4.2 with libssh installed using Homebrew. The simplest version of the code is: #include #include…
0
votes
1 answer

Issues wiith libssh cross-compilation for ARM

I am trying to cross compile libssh for ARM on a beaglebone black, following error happens when I run then 'make' command: [ 52%] Linking CXX executable libsshpp_noexcept ../src/libssh.so.4.5.1: undefined reference to `deflateInit_' I already run…
rohit
  • 21
  • 7
0
votes
0 answers

Install libssh fail due to cmake error

So I was trying to install libssh base on instruction from https://github.com/substack/libssh/blob/master/INSTALL Then when I was trying to build using cmake I have run into problems. I have cmake module on my linux server "cmake/3.7.2-1" When I…
0
votes
0 answers

compiling stand-alone exe & libssh

I've been struggling to compile stand-alone exe with i686-w64-mingw32-gcc using libssh; #define LIBSSH_STATIC 1 #include #include #include #include int main() { ssh_session my_ssh_session; …
Olli
  • 65
  • 2
  • 8
0
votes
1 answer

libssh/libssh.h not found on Windows 10 using gcc

I'm trying to use libssh on Windows 10 with gcc. The work is being done from the command line. I don't know how to make libssh/ part of the search path. The #include was libssh/libssh.h, but that failed. (The brackets were left out of this…
Just Nuts
  • 1
  • 2
0
votes
1 answer

How to use libssh in Borland Cbuilder project?

A while ago I used the libssh on a Visual Studio project. So far so good. Now I want to use that library on another project, a Borland Cbuilder project. But now I get a lot of compiler errors. I started by putting the following includes in the…
Hneel
  • 95
  • 10
0
votes
0 answers

Building libssh: Could not detect openssl/des.h

While building libssh on Windows machine I have faced a lot of struggles. I overcome some, but couldn't find any solution for this one. Here is it: Couldn't find clear answers while googling. Tried to install different versions of…