Hello Nick and thank you for your reply. When I look at my syslog logs here are 
the last logs after a connection attempt :


2023-10-30 15:18:25,654 DEBUG [http-nio-8080-exec-6] o.a.i.d.p.PooledDataSource 
[PooledDataSource.java:575] Testing connection 377198133 ...

2023-10-30 15:18:25,654 DEBUG [http-nio-8080-exec-6] o.a.i.d.p.PooledDataSource 
[PooledDataSource.java:586] Connection 377198133 is GOOD!
2023-10-30 15:18:25,654 DEBUG [http-nio-8080-exec-6] o.a.i.d.p.PooledDataSource 
[PooledDataSource.java:409] Returned connection 377198133 to pool.


No error is indicated, the connection is established then immediately 
disconnected.
The private key is an RSA key generated with OpenSSH in PEM format.


[cid:81867b49-d7f3-472c-886d-daf982e012da]

Matthieu LOPOUKHINE

Alternant Administrateur système et réseaux

Email :[email protected]<mailto:[email protected]>



Immeuble le Clémencia

196, rue Houdan – 92330 SCEAUX - France

Tél +33 06 86 82 94 45



________________________________
De : Nick Couchman <[email protected]>
Envoyé : lundi 30 octobre 2023 15:13
À : [email protected] <[email protected]>
Objet : Re: SSH connection problem with a private key - Guacamole


ATTENTION: Cet e-mail provient d'une personne externe à votre organisation. Ne 
cliquez pas sur les liens ou n'ouvrez pas les pièces jointes si vous ne 
connaissez pas l'expéditeur et que vous n'êtes pas sûr que le contenu soit sûr.

'

On Mon, Oct 30, 2023 at 10:03 AM LOPOUKHINE Matthieu 
<[email protected]> wrote:
Dear Sir or Madam
I'm an apprentice administrator. I wanted to use your "Apache Guacamole" 
solution to solve a problem in my company. However, I encountered a problem 
with private key authentication for SSH. Every time I try to connect with a 
private key, I get the following message : Connection failed, please try again. 
I looked at the logs and made sure the configuration files were set up 
correctly, but there was no difference. The public key is on the remote host 
and the SSH linux shell connection works. I don't know what the problem is. 
Could you tell me the exact process for private key authentication? Do you have 
a solution ? Thank you for your assistance.

You'll need to look at the logs for guacd and see what error is being provided 
for why the private key authentication is failing. guacd generally logs to your 
local syslog facility - /var/log/messages, journald, etc.

Also, you'll need to make sure that your private key is in a format that is 
supported by libssh2.

-Nick

Reply via email to