yinheli/sshw

Error message on .ssh/id_rsa even if keys are not defined as auth method

sasadangelo opened this issue · 2 comments

I have a configuration file where all my hosts are accessed via a password.
However, when I launch sshw and connect to a server I see the following message:
[sshw] 2020/10/13 18:19:03 [error] open /Users/sasadangelo/.ssh/id_rsa: no such file or directory

Basically, by default, it adds the key auth method assuming I have a key in .ssh/id_rsa.

I fixed the problem in this way:
sasadangelo@4fc8d47
but not sure if correct. If so, I can do PR.
Let me know.

Can someone confirm if my fix is correct or there is some drawbacks?

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.