Hi 
o.k.

found this workaround:
-----------
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 -
-----------

This will create a target with OpenVas default port list.
What to add to create_target task to have all TCP port list in?

Best regards
  Klaus

-----Original Message-----
From: Openvas-discuss
[mailto:[email protected]] On Behalf Of
Schulte, Klaus (NSN - DE/Ulm)
Sent: Thursday, October 11, 2012 8:54
To: [email protected]
Subject: [Openvas-discuss] targets with SSH credentials are not stored

Hi all,


when creating a new target with gsad the target will not be
stored/listed in targets list
if the target has ssh credentials not empty.

with configured SSH credentials
openvasmd.log
event auth:MESSAGE:2012-10-11 08h39.24 utc:20495: Authentication success
for user openvas (145bd5b5-fd4b-4700-a1b6-dd65f916261f)
lib   rer:WARNING:2012-10-11 08h39.24 UTC:20495: Target source
configuration could not be loaded.

without configured SSH credentials
openvasmd.log
event auth:MESSAGE:2012-10-11 08h39.43 utc:20498: Authentication success
for user openvas (145bd5b5-fd4b-4700-a1b6-dd65f916261f)
event target:MESSAGE:2012-10-11 08h39.43 UTC:20498: Target
462bbbfc-42f2-4c0a-bd4d-da46f3ba0f50 has been created
lib   rer:WARNING:2012-10-11 08h39.43 UTC:20498: Target source
configuration could not be loaded.


# rpm -qa |grep openvas
openvas-administrator-1.2.1-2.el6.art.x86_64
openvas-scanner-3.3.1-2.el6.art.x86_64
openvas-cli-1.1.5-3.el6.art.x86_64
openvas-1.0-3.el6.art.noarch
openvas-libraries-5.0.3-4.el6.art.x86_64
openvas-manager-3.0.3-3.el6.art.x86_64

# rpm -qa |grep green
greenbone-security-assistant-3.0.3-3.el6.art.x86_64

OS is CentOS 6.3 x64

Best regards
  Klaus



_______________________________________________
Openvas-discuss mailing list
[email protected]
http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discus
s
_______________________________________________
Openvas-discuss mailing list
[email protected]
http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to