Skip to content

Conversation

@cnangel
Copy link

@cnangel cnangel commented Jun 26, 2015

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

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

Development

Successfully merging this pull request may close these issues.

2 participants