Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Philippe MARTY on February 18, 2011, 09:27:45 AM

Title: Help How can I change remote management IP through SSH
Post by: Philippe MARTY on February 18, 2011, 09:27:45 AM
Hello,

I have a little problem accessing my smeserver from internet.
I need to access to the http server manager from outside of my network, but I'm already outside and I just have SSH access.

How, through SSH, can I setup my IP address to be authorized for server manager ?

Any idea ?
Thanks for your help
Title: Re: Help How can I change remote management IP through SSH
Post by: Daniel B. on February 18, 2011, 09:36:10 AM
If your IP address is 10.11.12.13, you can do
Code: [Select]
db configuration setprop httpd-admin ValidFrom \
 "$(db configuration getprop httpd-admin ValidFrom),10.11.12.13/255.255.255.255"
signal-event remoteaccess-update

Alternativly, you can access your server-manager through a SSH tunnel (explained here: http://forums.contribs.org/index.php/topic,46875.msg230703.html#msg230703)

Regards, Daniel
Title: Re: Help How can I change remote management IP through SSH
Post by: Stefano on February 18, 2011, 09:42:26 AM
I need to access to the http server manager from outside of my network, but I'm already outside and I just have SSH access.

simply type
Code: [Select]
elinks
into a ssh terminal.. and enjoy :-)
Title: Re: Help How can I change remote management IP through SSH
Post by: Philippe MARTY on February 18, 2011, 10:17:01 AM
Thanks for the fast replies.
@VIP-ire: I managed easily to change my IP and work on my server.

@Stefano: The elinks trick is awesome, I love it !
Simple and efficient :)

Thanks to both of you

I'm a happy guy !