Skip to content
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

sshkey client should load the private_key in the ssh-agent keys #1604

Open
dmahmouali opened this issue Nov 3, 2020 · 0 comments
Open

sshkey client should load the private_key in the ssh-agent keys #1604

dmahmouali opened this issue Nov 3, 2020 · 0 comments
Milestone

Comments

@dmahmouali
Copy link
Contributor

Description

when creating sshkey client, I add the privatekey path and it's loaded from the filesystem but it's not loaded in the ssh-agent keys.

ssh_cl = j.clients.sshkey.get("ubuntu_script")
ssh_cl.private_key_path = "/tmp/.ssh/id_rsa"
ssh_cl.load_from_file_system()
ssh_cl.save()

I have to run j.core.executors.run_local("ssh-add /tmp/.ssh/id_rsa") manually.
This should be done automatically in the client

@rkhamis rkhamis added this to the later milestone Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants