-
Notifications
You must be signed in to change notification settings - Fork 3
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
Regression since 0.18/0.19 - passphrased .key "Dying because - Broken transport; encountered EOF" #21
Comments
Confirmed @mchubby Thanks for the detailed information to reproduce! |
Related to #20 When passphrase is not in a storage path (i.e. secure option) sshj-plugin/src/main/java/com/plugin/sshjplugin/model/SSHJAuthentication.java Lines 34 to 47 in 5ea2ded
vs. sshj-plugin/src/main/java/com/plugin/sshjplugin/model/SSHJAuthentication.java Lines 45 to 50 in 7fc6c3e
|
Summary
Recently upgraded from 4.12 to 4.17, now SSH jobs fail.
We were already using SSHJ jobs without issue. The private key is password-protected.
Details
service.log has this output for the relevant execution:
@MegaDrive68k can you please take a look?
Here is the test case:
/var/rundeck/gitroot/sshtest-nodes.yml
/var/rundeck/gitroot/sshtest-passphrased.key
sshtest project: only defines the .key path and nodes (SSHJ is now default in 4.17).
Job definition
000_diag_SingleCommand.yaml
Action: run job with debug output, providing the key passphrase.
Expected Results
Provided script commands are executed (see attached log output file Output986-SSHJv0.1.7.txt)
To obtain this execution result, default plugin v0.19 was uninstalled, then the v0.17 jar was installed serverwide.
Observed Results
Using SSH plugin v0.19, SSH connection fails, therefore the job does too.
Nodeside, OpenSSH logs a new (tcp) connection and that's it.
see attached log for full output
Output988-SSHJv0.1.9.txt
Note: I tried setting -XX:MaxJavaStackTraceDepth=2000 in /etc/defaults/rundeckd but the exception stackdump is still incomplete.
Remarks
Using a non-password-protected key works. i.e.
ssh-keygen -p -f ...
ssh-key-passphrase-option
entry (optional)The text was updated successfully, but these errors were encountered: