SSH agent for remote debug

Questions about YourKit Java Profiler
Locked
alejezvir
Posts: 3
Joined: Tue Sep 06, 2022 12:27 pm

SSH agent for remote debug

Post by alejezvir »

Hello,

Is there any ability to provide an ssh-agent for remote application debug mode?

In my company we use Yubikey to connect to the machines, it stores private keys as socket in OS, but yourkit profiler has 2 options to connect:
* with password
* with private_key file (it does not understand socket)

Has anyone faced with such problem?

I tried to connect using ssh tunnel, forwarding remote ssh port to local and connect to localhost but it was not succeed because we use specific ssh server...

I see few solutions, but feature request require:
* implement the ability to use ssh-agent
* support .sock keys
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: SSH agent for remote debug

Post by Anton Katilin »

Hello,
I tried to connect using ssh tunnel, forwarding remote ssh port to local and connect to localhost but it was not succeed because we use specific ssh server...
What was the error message?
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: SSH agent for remote debug

Post by Vladimir Kondratyev »

Please try v2022.9 EAP https://www.yourkit.com/eap/ There were many improvement in SSH connectivity.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
alejezvir
Posts: 3
Joined: Tue Sep 06, 2022 12:27 pm

Re: SSH agent for remote debug

Post by alejezvir »

Anton Katilin wrote: Tue Sep 06, 2022 1:42 pm Hello,
I tried to connect using ssh tunnel, forwarding remote ssh port to local and connect to localhost but it was not succeed because we use specific ssh server...
What was the error message?
if I specify .sock that I found in filesystem error message: Cannot find private key /path/key.sock. Same result with 2022.9-b132
> file ./path/key.sock
./path/key.sock: socket

seems like it cannot resolve socket..
Is this possible for yourkit to use local ssh-agent?

I can see my keys here:
> ssh-add -L
mykeys
> ssh -V
OpenSSH_8.6p1, LibreSSL 3.3.6

or maybe add supporting for sockets?
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: SSH agent for remote debug

Post by Vladimir Kondratyev »

Please describe in details, where you keep your private SSH key. Profiler supposes that SSH private key is in normal file. Do you mean UNIX sockets?

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
alejezvir
Posts: 3
Joined: Tue Sep 06, 2022 12:27 pm

Re: SSH agent for remote debug

Post by alejezvir »

In my organization we have SSH PKI and special client soft(which is custom ssh-agent) for communication.
Employee's private keys are stored in USB device called Yubikey (https://developers.yubico.com/SSH/) and can be accessed via that special via ssh-agent protocol.
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: SSH agent for remote debug

Post by Vladimir Kondratyev »

alejezvir, thank you for explanation. We are investigating the possiblity to support authentication through ssh-agent.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: SSH agent for remote debug

Post by Vladimir Kondratyev »

alejezvir, please try latest v2022.9-b145 https://www.yourkit.com/eap/
We have supported authentication through ssh-agent. Please report the issues if any.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Locked