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

SshMachine hangs forever if hostname mismatches the IP key #459

Open
xNinjaKittyx opened this issue Aug 7, 2019 · 0 comments
Open

SshMachine hangs forever if hostname mismatches the IP key #459

xNinjaKittyx opened this issue Aug 7, 2019 · 0 comments

Comments

@xNinjaKittyx
Copy link

In scenarios where hostname key is correct, but the IP key is incorrect, plumbum doesn't spit an error, but instead hangs forever.

Warning: the ECDSA host key for 'myhostname' differs from the key for the IP address '192.168.1.123'
Offending key for IP in /root/.ssh/known_hosts:67
Matching host key in /root/.ssh/known_hosts:91
Are you sure you want to continue connecting (yes/no)?

In the scenarios where ssh key is incorrect or no key exists, it raises an exception (from what I remember...)

Slightly unrelated, but if there's a way to not use an identity file (yes I understand the risks), I would like to know this as well.

@xNinjaKittyx xNinjaKittyx changed the title SshMachine hangs forever if hostname is mismatches the IP key SshMachine hangs forever if hostname mismatches the IP key Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant