Page 1 of 1

Linux help needed

Posted: Sun Feb 28, 2016 10:19 pm
by smartroad
Hi guys,

I have setup an ownCloud server and was wondering about keeping it up to date with security patches etc. Would it be a good idea to add a daily cron job to apt-get update/upgrade? I plan to have it at my parents so I can use it as offsite backup, and I don't want to relly have the SSH exposed to the internet.

Any Linux guys have a thought on this?

Re: Linux help needed

Posted: Mon Feb 29, 2016 6:26 am
by charlie2alpha
You're not supposed to do upgrades in such an automated way, at least in the owncloud's case it requires running an update command from the command line to update it's internal databases. Can be done from the web interface too but it is not recommended, and at least once it broke the database for me.

You should keep the SSH exposed but, change it's listening port to a non standard port and use a key pair based authentication only, not interactive password authentication. I've been doing it like this for 15 years now, never had a security breach.

Re: Linux help needed

Posted: Mon Feb 29, 2016 8:51 am
by smartroad
Cheers!

I have been using the Pi for ages, but this is the first time using it remotely! I'll look at how to setup the key based authorization.