Hi all,
It was ssh [EMAIL PROTECTED] 'command' that I nedded to know.
I was looking at the ssh man page and had searched for exec, when it was 'command'.
Michael Lake wrote:
I am using AIDE Advanced Intrusion Detection Env. on a remote server. Normally to use aide one runs the program to create the database and then regularly use aide in check mode to compare what you now have with the database. The docs strongly suggest that you remove the aide.conf file, the aide.db and the aide binary from the machine and place it on removable media. When you want to check the system in goes the floppy or CD and away you check. That isnt possible on a remote server.
My aide files from the server are on a memory stick and I have written a bash script that uses scp to scp them to the server as step 1. An SSH agent is setup so its non-interactive during the copy.
Step 2 is a log into the server via ssh and change into the aide_files directory and run the check program.
Step 3 uses the bash script again to scp down the report and any new aide.db from any update.
Step 4 on the remote server is to remove the files there.
Can I somehow include the execution of the aide check as part 2 of the same bash script so I dont have to ssh in manually? That way I just run the bash script as steps 1., 2., 3. And also run step 4 remotely as well?
-- Michael Lake Chemistry, Materials & Forensic Science, UTS Ph: 9514 1725 Fx: 9514 1460
-- UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
