rundeck-plugins / sshj-plugin

SSH Node Executor and Field Copier using SSHJ
0 stars 3 forks source link

Rse 765 file system keys unreachable in rundeck #20

Closed Jesus-Osuna-M closed 1 year ago

Jesus-Osuna-M commented 1 year ago

Problem: A in the sshj-plugin has modified how private keys are used by the SSHClient, as a consequence of this change, private keys stored in the filesystem have become inaccessible to Rundeck, resulting in failed node authentication.

Solution The auth method was adapted to take in count the location of the key. If the private key is stored in Rundeck (AKA key storage), the current behavior will remain the same to avoid generating a temporary key. If the private key is located at a filesystem path, it will be loaded into the SSHClient, allowing it to authenticate again.