[ 
https://issues.apache.org/jira/browse/GUACAMOLE-1658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17836823#comment-17836823
 ] 

Nick Couchman commented on GUACAMOLE-1658:
------------------------------------------

Looking at the 0.9.7 code, along with the functions provided by libssh2, I 
think they are getting at slightly different functionality:
* If I read the code from 0.9.7 correctly, it's actually implementing ssh-agent 
functionality, effectively completely replacing ssh-agent and allowing what 
I've described above - a user logging in with a private key will have that 
private key accessible via agent forwarding.
* The libssh2 functions handle the forwarding, but expect that you're going to 
be running ssh-agent somewhere on the system where the libssh2 code is running 
(where guacd runs, in this case), and that you'll connect to that libssh2 agent.

That being the case, we either need to:
* Update the code from 0.9.7 and make it functional, again, which really means 
either re-implementing or replacing the ssh_key functionality, OR
* Use the libssh2 functions, but also have the code start up a copy of 
ssh-agent, add the identity, and set up the forwarding, and then tear it all 
down when it's done.

> Unable to compile guacamole server with --enable-ssh-agent
> ----------------------------------------------------------
>
>                 Key: GUACAMOLE-1658
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1658
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole-server
>    Affects Versions: 1.4.0
>         Environment: Rocky Linux 8.6 on x64, the latest libssh2 from remi 
> repository, guacamole server version 1.4.0.
>            Reporter: Pavel Kuzel
>            Assignee: Nick Couchman
>            Priority: Minor
>              Labels: guacamole-server, ssh-agent
>             Fix For: 1.6.0
>
>
> Hello there,
> a compilation of guacamole-server on Rocky Linux 8.6 with 
> "--enable-ssh-agent" fails on the missing ssh_key.h header file. Please see 
> the detail below:
> _make[2]: Entering directory 
> '/home/guacamole/guacamole-server/src/protocols/ssh'_
>   _CC       libguac_client_ssh_la-argv.lo_
> _In file included from ssh.h:33,_
>                  _from argv.c:22:_
> _ssh_agent.h:26:10: fatal error: ssh_key.h: No such file or directory_
>  _#include "ssh_key.h"_
>           _^~~~~~~~~~~_
> _compilation terminated._
> Just for the record, I use the latest version of libssh2 (1.10.0) and I'd 
> like to use the agent forwarding functionality within the guacamole server. 
> Is there any way how to get it running in the current version of 
> guacamole-server?
> Regards,
> Pavel
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to