patch atnodes for cnangel
主要增加Expect功能,避免OpenSSH 的system通过stdin_data传递password传递不了,老提示输入密码
@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?
@cnangel Please address my comments above. Thank you for your contribution!