-
0 votesanswersviews
使用SSL在apache上运行django应用程序:pexpect spawn / expect不起作用
我在启用了SSL的apache 2.2上运行了一个django应用程序 . 当我没有启用SSL时,一切都很顺利 . 但是对于安全性,可能会对操作系统如何分离进程等有一些限制 . 我完全不知道这些 . 使用的操作系统:Solaris(不确定它是否重要,但它可以)Django v1.4,Apache 2.2,Python 2.7 在我的一个观点中概述了我正在做的事情: def run_step(req... -
0 votesanswersviews
期望/发送密码时出现pexpect.EOF错误
我在unix环境中运行此命令 . 但我有这些持续的问题! OUTPUT:after:match:无match_index:无exitstatus:无flag_eof:True pid:17368 child_fd:3已关闭:False超时:30分隔符:logfile:无logfile_read:无logfile_send:无maxread:2000 ignorecase:False searchw... -
0 votesanswersviews
在pexpect python期间root身份验证失败
下面的观察结果并非总是如此,但是一段时间后用root用户和正确的密码用ssh多次访问SUT,python代码遇到了麻烦: Apr 25 05:51:56 SUT sshd[31570]: pam_tally2(sshd:auth): user root (0) tally 83, deny 10 Apr 25 05:52:16 SUT sshd[31598]: pam_unix(sshd:auth... -
3 votesanswersviews
使用ansible在远程主机上创建ssh密钥失败
我正在使用Ansible在远程主机上创建ssh密钥 . 以下是剧本代码 - name: Test playbook hosts: all remote_user: admin tasks: - name: Create ssh keys expect: command: ssh-keygen -t rsa echo: yes ...