On 9/4/2012 4:11 PM, Ryan Gurney wrote:
Hi all,
I have implemented OpenVas 5 on a couple of boxes (Ubuntu 12.04 and
CentOS 6.2) and I cannot seem to get the web interface to apply a SSH
pub/priv keypair to a target. The application never places the target
into the Target pane when I hit "Create Target", and it does not show
an error. If i do not specify a credential, it works fine. Has anyone
else had this issue?
_______________________________________________
Openvas-discuss mailing list
[email protected]
http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
Yeah, I noticed that too on my installation, although I haven't had the
time to look at the code to find out what might be going wrong.
Creating a target via the OMP protocol/client works fine though
http://openvas.org/omp-3-0.html#command_create_target so I assume the
problem is in GSA
Adding a Target with ssh credentials via the omp cli as a workaround
(assumes you have connection info set in /etc/openvas/omp.config):
omp --config-file=/etc/openvas/omp.config -iX
"<get_lsc_credentials/>" (parse the output, get the UID of the
credential you want to use)
echo "
<create_target>
<name>${TargetName}</name>
<hosts>${TargetIPs}</hosts>
<ssh_lsc_credential
id=\"${CredentialUID}\"><port>22</port></ssh_lsc_credential>
</create_target>" | omp --config-file=/etc/openvas/omp.config -X -
_______________________________________________
Openvas-discuss mailing list
[email protected]
http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss