with reference to this post
https://groups.google.com/forum/#!searchin/security-onion/asking$20password|sort:relevance/security-onion/-scFibM9MwA/HBGa95djgeYJ
When I am trying to make that automatic using key authentication. (rule update)
Getting the below issue as permission denied.
Tried putting the ssh username and server name manually as well.
Even ensured SSH Username is part of Sudo group.
xxxx@xxxxx:/# ssh-copy-id -i "$KEY".pub $SSH_USERNAME@$SERVERNAME
$SSH_USERNAME@$SERVERNAME's password:
bash: /home/xxxxxxxxx/.ssh/authorized_keys: Permission denied
Regards,
Satya.
Satya,
Are you running this command as root?
Thanks,
Wes
HI Wes,
Yes, I am running with root.
Regards,
Satya.
Please post the exact steps you took to arrive at this error.
Thanks,
Wes
Hi Wes,
Apologies for delaying.
As there were multiple issues to be fixed in this sensor and aligned with the change windows, we have rebuilded this sensor, However everything went smooth, at the end after adding the sensor to the masters salt configuration,
rule update is not changing to salt update.
$ ls -l /etc/cron.d/
total 44
-rw-r--r-- 1 root root 288 Jun 20 2010 anacron
-rw-r--r-- 1 root root 258 Aug 28 20:39 bro
-rw-r--r-- 1 root root 224 Jan 1 2014 capme
-rw-r--r-- 1 root root 209 Oct 12 23:06 elsa
-rw-r--r-- 1 root root 308 May 25 2013 nsm-watchdog
-rw-r--r-- 1 root root 544 Sep 12 2012 php5
-rw-r--r-- 1 root root 384 Oct 12 23:06 rule-update (this part is not changing to salt-update)
-rw-r--r-- 1 root root 234 Aug 28 20:39 sensor-clean
-rw-r--r-- 1 root root 823 Aug 13 18:34 sensor-newday
-rw-r--r-- 1 root root 248 Oct 19 2012 sguil-db-purge
-rw-r--r-- 1 root root 403 Oct 13 2013 squert-ip2c
And also when trying this (rule update without password)
https://groups.google.com/forum/#!searchin/security-onion/asking$20password|sort:relevance/security-onion/-scFibM9MwA/HBGa95djgeYJ
pubic Key is getting added to the authorized keys, but still asking for password.
Which also results in ELSA processing its required updates to master.
Request your suggestion here.
Thanks,
Satya
--
Follow Security Onion on Twitter!
https://twitter.com/securityonion
---
You received this message because you are subscribed to the Google Groups "security-onion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to security-onion+unsubscribe@googlegroups.com.
To post to this group, send email to security-onion@googlegroups.com.
Visit this group at https://groups.google.com/group/security-onion.
For more options, visit https://groups.google.com/d/optout.