Skip to main content

2 posts tagged with "c"

View All Tags

解决Apache Guacamole中SSH连接数量超过60个以后无法建立新连接的问题

· 4 min read
orange
programmer on jvm platform

问题描述

在使用 Apache Guacamole 建立大量并发 SSH 连接时,当连接数超过60个,新的 SSH 连接将无法建立。 guacd 服务的日志会输出以下关键错误。

guacd[1]: INFO: Creating new client for protocol "ssh"
guacd[1]: INFO: Connection ID is "$9ab9b061-a1ae-4a18-b56a-83202fa22b5c"
guacd[3882]: INFO: User "@fc5e98ea-74ab-49c9-9b06-c3206469cab0" joined connection "$9ab9b061-a1ae-4a18-b56a-83202fa22b5c" (1 users now present)
GLib (gthread-posix.c): Unexpected error from C library during 'pthread_key_create': Resource temporarily unavailable. Aborting.
guacd[3882]: ERROR: SSH handshake failed.
guacd[3882]: INFO: User "@fc5e98ea-74ab-49c9-9b06-c3206469cab0" disconnected (0 users remain)
guacd[3882]: INFO: Last user of connection "$9ab9b061-a1ae-4a18-b56a-83202fa22b5c" disconnected
guacd[1]: INFO: Connection "$9ab9b061-a1ae-4a18-b56a-83202fa22b5c" removed.

将Apache Guacamole从1.5.5升级到1.6.0版本后SSH终端粘贴中文首个字符不显示问题排查与解决

· 5 min read
orange
programmer on jvm platform

在将Apache Guacamole1.5.5升级到1.6.0版本后,遇到了一个的问题: 在使用SSH终端时,粘贴中文文本的第一个字符无法正常显示。

从本地复制一段以中文字符开头的文本(例如:“我是人”)并粘贴到Guacamole终端中时,屏幕上显示的并非完整的我是人,而是是人,开头的字不翼而飞。

cfb396cc38020b333834ea53436e0ba7116734666aeeaa7766b031579fe28de0.png

经过一番排查和测试,最终找到了问题的根源并给出了解决方案。