Subject: [libssh2] #308: Agent forwarding not working

[libssh2] #308: Agent forwarding not working

From: libssh2 Trac <>
Date: Tue, 18 Aug 2015 14:12:59 -0000

#308: Agent forwarding not working
 Reporter: Nikunj | Owner:
     Type: defect | Status: new
 Priority: normal | Milestone: 1.5.0
Component: API | Version: 1.5.0
 Keywords: | Blocked By:
   Blocks: |
 I am using libssh2 library to ssh connections in my mobile application.
 Here I want to use Agent Forwarding support.

 I have followed same procedure as they have provided in example here

 I am able to create agent successfully but when I try to connect it with
 libssh2_agent_connect(agent) It gives me error -39 LIBSSH2_ERROR_BAD_USE.

 Please suggest if anything wrong. Or what's the correct flow please
 suggest to use.


Ticket URL: <>
libssh2 <>
C library for writing portable SSH2 clients
Received on 2015-08-18