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

Symbol looked up error: Undefined symbol

I'm trying to use libssh with C++ wrapper libsshpp.hpp ( It's wrapped from libssh.h, the libssh libraries written in C). At first I try to buld code from libsshpp.cpp in examples directory g++ -o sshpp libsshpp.cpp -lssh #include #include…
Nhan Ly
  • 95
  • 1
  • 4
  • 12
0
votes
2 answers

Hydra on Windows comes up with "[ERROR] Compiled without LIBSSH v0.4.x support, module is not available"

After trying to run the following query with THC-HYDRA: hydra -l ROOT -P pass.lst -M hosts.lst ssh I get this responce: Hydra v7.5 (c)2013 by van Hauser/THC & David Maciejak - for legal purposes only Hydra (http://www.thc.org/thc-hydra) starting…
user2752347
  • 161
  • 6
  • 16
0
votes
1 answer

Error fatal: libssh.h: No such file or directory NETBEANS

#include #include #include #include #include using namespace std; /* * */ int main(int argc, char** argv) I have that code, and when compiling the error fatal of no Libssh.h is…
Arco y Flecha
  • 15
  • 1
  • 3
0
votes
1 answer

libssh v0.6. Timeout Connection when server is SSHV1 & using DES

I'm trying to connect to an SSHV1 server(DES), so i used the latest v0.6rc1. But always got the following error message: [2013/09/16 16:33:08.170438, 1] ssh_connect: libssh 0.6.0 (c) 2003-2010 Aris Ad amantiadis (aris@0xbadc0de.be) Distributed…
0
votes
1 answer

Meaning of ssh_get_issue_banner() failure in libssh

When I call ssh_get_issue_banner() under libssh, I get a NULL (failure) back even though "ssh -vvv" shows a myriad of welcome messages. Why would this be?
Dustin Oprea
  • 9,673
  • 13
  • 65
  • 105
0
votes
0 answers

Libssh SFTP download inside a thread crashes on sftp_read

I'm using the libssh library in MFC C++, specifically the SFTP wrapper. I have code working when not using threading, but I want to use AfxBeginThread to allow user action to continue. I have confirmed I'm passing the exact same filenames and…
dajaffe
  • 855
  • 13
  • 34
0
votes
1 answer

C++ Retrieve data via SSH using libssh libary failed

I'm trying to get the output of the command 'df' which I'll replace later, from a remote server: #include #include #include int main() { ssh_session my_ssh_session; int rc; ssh_channel channel; …
Shlomi
  • 337
  • 1
  • 6
  • 19
0
votes
1 answer

Libssh remote commands not executing on server

Having read the relevant docs and tutorials and found a similar question, I am still unable to proceed. My aplogies in advance if this is a common question. I did searches but I wasn't really sure what I was looking for... I am experimenting with…
Chortle
  • 1
  • 1
0
votes
2 answers

ssh-connecting to rbash won't source the .profile file

I am using libssh to connect to a remote machine and execute commands. The connection works fine, but here's the rub: on the distant machine, the bash that is running while I'm connected is a rbash. When I send ps | grep ungreppable_phrase to be…
fzd
  • 765
  • 1
  • 6
  • 19
0
votes
1 answer

Send 'enter' to remote process with libssh

I'm using libssh to log into a terminal and then run a ncurses application. I'm following this tutorial, sending one character at the time: http://api.libssh.org/master/libssh_tutor_shell.html The ncurses application waits for user input with…
Hohenheimsenberg
  • 935
  • 10
  • 25
0
votes
2 answers

How much does a program that has to talk to arbitrary servers need SSH v1 support?

I'm starting a new project, a cross-platform C++ program that will need to connect to servers of the user's choice using SSH code built into the program. I'm trying to decide between libssh and libssh2. (Licensing is not an issue; libssh's LGPL is…
Head Geek
  • 38,128
  • 22
  • 77
  • 87
0
votes
2 answers

Memory-leaks when using libssh

I am trying to use libssh in my application, but I keep getting memory leaks. The most simplistic code, I am trying, is: #include #define SSH_NO_CPP_EXCEPTIONS assert(0 == ssh_init()); ssh_session m_session; assert(m_session =…
dk1844
  • 265
  • 2
  • 12
0
votes
1 answer

Libssh Server Authentication in VS2008 not going well

I am using the libssh library for creating a connection to an ssh server created on a remote server. Everything goes well with the connection until the code gets the public key from the server and asks user if he wants to save it or not. There the…
pslayer89
  • 307
  • 5
  • 14
0
votes
2 answers

Libssh, X11 forewarding

i am trying to user X11 forwarding with libssh. Because i have not found good examples for doing so, can anyone give me some example how to use X11 with libssh? Thanks!
Philipp H.
  • 1,513
  • 3
  • 17
  • 31
0
votes
2 answers

Custom commands with libssh

I am using SSH to communicate with a condor server and need to call commands for custom control (i.e. condor_submit, condor_make, condor_q, etc.). Having downloaded and successfully integrated libSSH in my Xcode project (yes, I'm using Mac OS), I…
Max Z.
  • 801
  • 1
  • 9
  • 25
1 2 3
14
15