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
Failed: SSHProtocolFailure: invalid privatekey: [B@5dbcf05 #6022
Comments
Hi, I followed these steps and works:
Now you can edit that file including the remote node, in my case is "node00" (a Vagrant test image), on <?xml version="1.0" encoding="UTF-8"?>
<project>
<node name="hyperion" description="Rundeck server node" tags="" hostname="hyperion" osArch="amd64" osFamily="unix" osName="Linux" osVersion="4.15.0-66-generic" username="ruser"/>
<node name="node00" description="Node 00" tags="" hostname="192.168.33.20" osArch="amd64" osFamily="unix" osName="Linux" osVersion="3.10.0-1062.4.1.el7.x86_64" username="vagrant" ssh-key-storage-path="keys/rundeck"/>
</project>
Hope it helps! |
This is an old thread, but I wasted a bunch of time following rabbit trails on this. In case it helps anyone hitting this with a google search - make sure your framework ssh key has "BEGIN RSA PRIVATE KEY" instead of "BEGIN OPENSSH PRIVATE KEY". The latter will not work. You will need to convert it with:
or similar. |
Thank you for this reply. Everytime I want to sell to management Rundeck as a solution, these small rabbit holes make me want to shelves this solution completely. I was really hoping that after 5 years of using the solution before in a previous company, that this would mature. Let see what other rabbit holes I'll find before selling this solution. |
One more thing to add for those who might be in the same rabbit hole I was in. SHA1 is disable by default for security reasons in updated versions of openssh, so for Rundeck you will need to enable it.
That being said I ran into this issue with version: 4.10.0-20230213 (docker image tag) and storing the keys on the database. |
Describe the bug
I had made a private and public ssh key with the command : ssh-keygen -t rsa -b 4096 on my rundeck server. I add the private key to the key storage by the web interface. And add the public key to the VM i want to use ssh, i copy it with scp and then add it to ~/.ssh/authorized_keys with cat key>> authorized_keys.
But when i try to run a command by the web interface, for example uptime, i got the following errors.
My Rundeck detail
To Reproduce
Steps to reproduce the behavior:
file configuration for nodes :
Project configuration :
#Tue May 05 13:35:34 CEST 2020
#edit below
project.description=test1
project.disable.executions=false
project.disable.schedule=false
project.execution.history.cleanup.batch=500
project.execution.history.cleanup.enabled=false
project.execution.history.cleanup.retention.days=60
project.execution.history.cleanup.retention.minimum=50
project.execution.history.cleanup.schedule=0 0 0 1/1 * ? *
project.jobs.gui.groupExpandLevel=1
project.label=test1
project.name=test1
project.output.allowUnsanitized=false
project.ssh-authentication=privateKey
project.ssh-command-timeout=0
project.ssh-connect-timeout=0
project.ssh-keypath=/var/lib/rundeck/.ssh/id_rsa
resources.source.1.config.file=/var/lib/rundeck/projects/test1/etc/resources.xml
resources.source.1.config.format=resourcexml
resources.source.1.config.generateFileAutomatically=true
resources.source.1.config.includeServerNode=true
resources.source.1.config.writeable=true
resources.source.1.type=file
service.FileCopier.default.provider=jsch-scp
service.NodeExecutor.default.provider=jsch-ssh
On rundeck server : ssh-keygen -t rsa -b 4096
no specify name or passphrase
Add the private key to Key Storage in Rundeck Web Interface, add the public key to other VM and add it in the VM authorized_keys.
Expected behavior
Be able to run command with SSH in Web interface
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: