它适用于我的# ----------------------------------------------------------------------
# Password protect staging server
# Use one .htaccess file across multiple environments
# (e.g. local, dev, staging, production)
# but only password protect a specific environment.
# ----------------------------------------------------------------------
SetEnvIf Host staging.domain.com passreq
AuthType Basic
AuthName "Password Required"
AuthUserFile /full/path/to/.htpasswd
Require valid-user
Order allow,deny
Allow from all
Deny from env=passreq
Satisfy any
shell:
Bash
但是当我尝试通过python $ snmpwalk -V
NET-SNMP version: 5.7.2.1
执行完全相同的命令时:
subprocess
任何想法在这里有什么问题?