The Wayback Machine - https://web.archive.org/web/20200917224742/https://github.com/ParallelSSH/parallel-ssh/issues/164
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

Update host_config example #164

Closed
bhaweshintouch opened this issue Mar 26, 2019 · 2 comments
Closed

Update host_config example #164

bhaweshintouch opened this issue Mar 26, 2019 · 2 comments
Labels

Comments

@bhaweshintouch
Copy link

@bhaweshintouch bhaweshintouch commented Mar 26, 2019

Getting error on simple example steps.
host_config = {'my.example.com' : {'user': 'ubuntu', 'private_key': load_private_key(
open('mykey.pem'))}
}
hosts = host_config.keys()
client = ParallelSSHClient(hosts, host_config=host_config)
output = client.run_command('pwd')

@pkittenis
Copy link
Member

@pkittenis pkittenis commented Mar 26, 2019

Hi there,

Thanks for interest and report. The example needs updating, it should be:

host_config = {'my.example.com' : {'user': 'ubuntu', 'private_key': 'mykey.pem'}}

load_private_key is only for paramiko clients.

@pkittenis pkittenis changed the title AttributeError: 'RSAKey' object has no attribute 'startswith' Update host_config example Mar 26, 2019
@pkittenis
Copy link
Member

@pkittenis pkittenis commented Aug 20, 2020

Documentation updated.

@pkittenis pkittenis closed this Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.