sshbatch icon indicating copy to clipboard operation
sshbatch copied to clipboard

patch atnodes for cnangel

Open cnangel opened this issue 10 years ago • 2 comments

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

cnangel avatar Jun 26 '15 13:06 cnangel

@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 avatar Jun 27 '15 02:06 agentzh

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

agentzh avatar Jun 27 '15 02:06 agentzh