[mythtv-users] Restarting the backend from the frontend
dsr-myth at tao.merseine.nu
Fri Nov 2 18:43:57 UTC 2007
On Fri, Nov 02, 2007 at 07:30:54PM +0100, Ma Begaj wrote:
> > process from the frontend computer (seperate back & frontends). But I
> > couldn't figure out a secure way to run a script as root through ssh and I
> > gave up. Both my back and frontends run ubuntu so there is no dedicated
> > root account. It would probably be easier if you have a dedicated root
> > account.
> What's the big deal about it? What did not work? I am using more or
> less the same way to mount samba drives.
> on frontend:
> make a ssh key with ssh-keygen. you will find two new files in ~/.ssh/
> folder: id_dsa (private key) and id_dsa.pub (or id_rsa and
> id_rsa.pub, depending on key type).
> copy id_dsa.pub to you mythbackend with "scp id_dsa.pub
> mythbackend_address@/home/mythtv/.ssh/authorized_keys" if
> authorized_keys does not exist. if it exists, copy the key and append
> it to authorized_keys with ">>".
man sshd and read the section entitled AUTHORIZED_KEYS FILE FORMAT.
Then strongly consider adding command="whatever" restrictions.
> make a shell script which restarts mythbackend and call it i.e.
Every time you give up a right, the terrorists win.
Tyranny is something that creeps up on you.
http://tao.merseine.nu:81/~dsr/eula.html is hereby incorporated by reference.
More information about the mythtv-users