On 14/01/2011, at 14:45, Ivo Brodien wrote:

> one more question: What is the best/common way to adminstrate the server? Of 
> course via the cherokee admin over ssh tunnel, but do you have that running 
> always or do you just turn it on, if you need to do something? And if so, how 
> do you get the one-time admin password from you local machine? any trick here?


There are a few ways:

Let's suppose you administer www.example.com.  You could launch cherokee-admin 
remotely via SSH, and at the same time, create a tunnel to it:
ssh -L 9090:localhost:9090 www.example.com sudo cherokee-admin

If you confident of the security of your local computer, you could add the -u, 
so cherokee-admin doesn't ask for authentication:
ssh -L 9090:localhost:9090 www.example.com sudo cherokee-admin -u

There is a secure authentication check to connect to sshd, so that phase is 
secure. The only weak case of adding -u is that another user of your local 
machine could also connect to localhost:9090 is mess with the server.  I 
personally use this method form my laptop every now and then.

You can also log in the remove machine and execute: cherokee-admin -b, so it 
binds to all network interfaces.  Then you copy the password printed in the 
screen, and connect to http://www.example.com:9090/ from your local browser. 
This method is also quite straight forward.

If you want to launch cherokee-admin in your local machine, Cherokee 1.0.17 
will ship a utility named "cheroke-admin-launcher" that will do most of the 
work for you. Pros: It's quite convenient. Cons: It does work only in your 
local machine by now.

Cheers!

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to