问题描述:
如图1、2所示,在SAC页面中点击扫描,提示“The target host is not configured with ip[172.16.106.241] and hostname[access control disabled,clients can connect from any host] mappings in its configured file(/etc/hosts)”。但在实际检查中,hosts文件和hostname文件都已经正确配置,如图3所示。
解决方法:
如图4所示,把bashrc文件的export DISPLAY=":0"和xhost +注释掉,新增export DISPLAY=:0.0,问题解决。
图片1:

图片2:

图片3:

图片4:
