How to answer to prompts automatically with python fabric?
How to answer to prompts automatically with python
https://www.manongdao.com/q-73828.html
Automatically responding to program output
http://docs.pyinvoke.org/en/stable/concepts/watchers.html
https://docs.fabfile.org/en/1.9/usage/env.html#prompts
How to get Fabric to automatically (instead of user-interactively) interact with shell commands? Combine with pexpect?
python 3 support for fabric
https://stackoverflow.com/questions/18736274/python-3-support-for-fabric
python 使用pexpect实现自动交互示例
https://blog.51cto.com/superleedo/2119076
Python Pexpect 模块使用说明
https://blog.csdn.net/zhongbeida_xue/article/details/78679601
Python命令行自动化交互模块:pexpect
https://www.jianshu.com/p/4638df2ca96e
如何向expect脚本里面传递参数
https://www.cnblogs.com/hanframe/p/3564942.html
shell中调用expect以及如何传参
https://blog.csdn.net/kafeikejian/article/details/7007228?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2.control
#!/usr/bin/expect
set timeout 3600
spawn rsync -avz /ftp/$argv 0 root@172.16.18.51:/home/rsync_ftp
expect "*password"
send "sibao
"
expect eof
Python subprocess command answering prompt
https://stackoverflow.com/questions/47538080/python-subprocess-command-answering-prompt
Prompt/etc autoresponder #289
https://github.com/pyinvoke/invoke/issues/289
ssh登录问题出现Pseudo-terminal will not be allocated because stdin is not a terminal错误
https://blog.csdn.net/xqhrs232/article/details/73613414
ssh -t -t user@10.242.1.1或者ssh user@10.242.1.1 -tt
Linux SSH登录服务器报ECDSA host key "ip地址" for has changed and you have requested strict checking错误
https://blog.csdn.net/ausboyue/article/details/52775281
ssh-keygen -R "你的远程服务器ip地址"
python – fabric导入错误:无法导入名称’isMappingType’