Github user pwendell commented on the pull request:
https://github.com/apache/spark/pull/4162#issuecomment-72113135
Hey on this one - doesn't ssh itself give a good error message if the key
file does not have the correct permissions? Should we just be propagating the
SSH message rather than trying to duplicate logic here?
"""
> ssh -i id_rsa_unprotected [email protected]
Note: logging in to this server with a password has been disabled.
Please see :
https://blogs.apache.org/infra/entry/committer_shell_access_to_people
Remember to load your ssh key:-
See: http://linux.die.net/man/1/ssh-add
See: http://linux.die.net/man/1/ssh-agent
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for 'id_rsa_unprotected' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: id_rsa_unprotected
Permission denied (publickey).
"""
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]