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

patch atnodes for cnangel #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

cnangel
Copy link

@cnangel cnangel commented Jun 26, 2015

主要增加Expect功能,避免OpenSSH 的system通过stdin_data传递password传递不了,老提示输入密码

@@ -3,12 +3,13 @@ abstract: 'Cluster operations based on parallel SSH, set and interval arithmetic
author:
- "Zhang \"agentzh\" Yichun <agentzh@gmail.com>"
build_requires:
ExtUtils::MakeMaker: 6.42
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please exclude these irrelevant changes.

@agentzh
Copy link
Owner

agentzh commented Jun 27, 2015

@cnangel For the sake of consistency, will you add expect mode to the tonodes tool as well?

Also, your commit log message is not really descriptive. How about feature: added the "expect" mode via the "-E" and "-T" options to work-around remote hosts requiring tty?

By looking at the problem more, I wonder if it's much easier to just pass the -t option to ssh so as to force the allocation of pseudo-tty on the remote side? See http://unix.stackexchange.com/questions/122616/why-do-i-need-a-tty-to-run-sudo-if-i-can-sudo-without-a-password Thoughts?

@agentzh
Copy link
Owner

agentzh commented Jun 27, 2015

@cnangel Please address my comments above. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants