-
Notifications
You must be signed in to change notification settings - Fork 731
GUACAMOLE-312: Add guacd support for tunneling connections over SSH #534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
I cloned your PR, docker build fails |
A dirty working fix for now,
export CFLAGS="-I${PREFIX_DIR}/include -Wno-error=deprecated-declarations"
-DWITH_ZLIB=ON \
-DDISABLE_WERROR=ON" |
|
ok not working in docker first problem was that it was using a non-existent directory guacd | guacd[113]: ERROR: Failed to make socket directory "/opt/guacamole/var/run/guacd/$4d869762-04d5-4e32-bdc5-90a91fedc043": No such file or directoryas a quick fix, i mounted a volume there volumes:
- ./guacd-var-run:/opt/guacamole/var/run/guacdBut still no cigar, times out guacd | guacd[1]: INFO: Creating new client for protocol "ssh"
guacd | guacd[1]: INFO: Connection ID is "$510d4fd2-9bc5-4fb2-bbfc-0825f54b5b78"
guacd | guacd[206]: INFO: User "@09816826-2d16-4da4-a80d-c371d94a178f" joined connection "$510d4fd2-9bc5-4fb2-bbfc-0825f54b5b78" (1 users now present)
guacamole | 00:28:10.749 [http-nio-8080-exec-7] INFO o.a.g.tunnel.TunnelRequestService - User "john-doe" connected to connection "2".
guacd | guacd[206]: WARNING: No known host keys provided, host identity will not be verified.
guacd | guacd[1]: INFO: Connection "$510d4fd2-9bc5-4fb2-bbfc-0825f54b5b78" removed.
guacamole | 00:28:26.210 [Thread-22] ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Connection to guacd terminated abnormally: Connection to guacd timed out.
guacamole | 00:28:26.211 [Thread-22] INFO o.a.g.tunnel.TunnelRequestService - User "john-doe" disconnected from connection "2". Duration: 15462 millisecondsThis happens with SSH Tunnel enabled and correct auth details |
7a60ef2 to
d840464
Compare
d840464 to
fe531d9
Compare
fe531d9 to
1cef98f
Compare
|
@jseifeddine These issues should be resolved, now - I've re-based this against the current |
building and testing now, I'll let you know how it goes thanks so much for your efforts |
|
still same behavior with the tunnel connection the build succeeds now without warning or error however the socket dir doesn't exist where you assume it to so I modify the this appears to fix the socket dir not existing error and the ssh tunnel seems to be initialized correctly Maybe its something to do with the socket dir? |
|
Also, these messages may serve as a clue to whats happening They continue even after i've closed the session in guacamole app and disconnected also, the sockets dont get cleaned up, they remain - until i restart the container |

This adds the guacd-side settings and functions to support tunneling most of the available protocols over SSH, including SSH, RDP, Telnet, and VNC. When I looked at Websockets and its supporting library, I did not see an obvious way to implement it, there, so I've skipped that one for the moment.