I am trying to install OSSEC Agentless for monitoring on my
dashboard.After successfully adding the IP of my dashboard in the
'register_host.sh' (in /var/ossec/agentless)and adding the script of
'ssh_integrity_check_linux' in the ossec.conf (in var/ossec/etc/
ossec.conf) I'm encountering the error "Could not create directory /
var/ossec/.ssh' while generating the public/private key using the
command in ossec :'sudo -u ossec ssh-keygen -t rsa'

the script has been shown below:-

[root@SecDashboard ossec]# sudo -u ossec ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/var/ossec/.ssh/id_rsa): /var/
ossec/.ssh
Could not create directory /var/ossec/.ssh'.
Enter passphrase (empty for no passphrase):

how can I get rid of this error.please help

Reply via email to