Koozali.org: home of the SME Server

Help How can I change remote management IP through SSH

Offline Philippe MARTY

  • **
  • 37
  • +0/-0
Help How can I change remote management IP through SSH
« 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
Keep smiling with the sun and singing with the birds
www.atelier51.com

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Help How can I change remote management IP through SSH
« Reply #1 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
C'est la fin du monde !!! :lol:

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Help How can I change remote management IP through SSH
« Reply #2 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 :-)

Offline Philippe MARTY

  • **
  • 37
  • +0/-0
Re: Help How can I change remote management IP through SSH
« Reply #3 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 !
Keep smiling with the sun and singing with the birds
www.atelier51.com