Koozali.org: home of the SME Server

remote access to server manager

Offline ElFroggio

  • *
  • 262
  • +0/-0
remote access to server manager
« on: June 16, 2014, 11:21:58 PM »
Hi,

I have sme 8.1 and I have problem accessing server manager remotely.

Wan --router -- sme (as stand alone server) -- inside network

I have a Putty that logs me in to the console and that works. I can launch elinks and do what I need to do but I don't like elinks. I'd rather use firefox on my laptop. For that I have created a tunnel for 443. (L443 127.0.0.1:443)

https://localhost/server-manager gives me the page is not accessible.

I have checked the many pages that mention putty+tunnel they all they create the tunnel then after logging on, https://localhost-server-manager ...

Any suggestion on what to look for?

Thanks

Syv

Offline idp_qbn

  • *****
  • 347
  • +0/-0
Re: remote access to server manager
« Reply #1 on: June 16, 2014, 11:53:31 PM »
Try
Code: [Select]
https://localhost/server-manager
Cheers
Ian
___________________
Sydney, NSW, Australia

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: remote access to server manager
« Reply #2 on: June 17, 2014, 12:02:33 AM »
Try
Code: [Select]
https://localhost/server-manager

That's what I did, as I explained in the original post and I get page not accessible

Thanks

Syv

Offline TerryF

  • grumpy old man
  • *
  • 1,848
  • +6/-0
Re: remote access to server manager
« Reply #3 on: June 17, 2014, 12:14:32 AM »
Perhaps I should read more, if SSH is working and you are logging in with putty..duuhhhh

Have you enabled remote access in server manager?
« Last Edit: June 17, 2014, 12:17:44 AM by TerryF »
--
qui scribit bis legit

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: remote access to server manager
« Reply #4 on: June 17, 2014, 03:01:48 AM »
Have you enabled remote access in server manager?
When I'm on my local network, it works. I thought that the point of the tunnel is to make it local and not remote?

Thanks

Syv

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: remote access to server manager
« Reply #5 on: June 17, 2014, 03:52:06 AM »
Why are you not using SME Server as your router, in server and gateway mode?
......

Offline TerryF

  • grumpy old man
  • *
  • 1,848
  • +6/-0
Re: remote access to server manager
« Reply #6 on: June 17, 2014, 04:03:44 AM »
When I'm on my local network, it works. I thought that the point of the tunnel is to make it local and not remote?

So what are your Remote Access - Secure Shell Settings settings in Server Manager?
--
qui scribit bis legit

Offline idp_qbn

  • *****
  • 347
  • +0/-0
Re: remote access to server manager
« Reply #7 on: June 17, 2014, 04:16:07 AM »
ElFroggio
Just to clarify: Are you connecting by Putty first - and leaving it connected -  before you open the browser?
I found that if I opened the browser first, then used Putty, the browser could not connect to my SME.
It has to be Putty first (and leave it connected because that provides the tunnel), then browser second.

Cheers
Ian
___________________
Sydney, NSW, Australia

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: remote access to server manager
« Reply #8 on: June 17, 2014, 04:52:49 AM »
ElFroggio
Just to clarify: Are you connecting by Putty first - and leaving it connected -  before you open the browser?
I found that if I opened the browser first, then used Putty, the browser could not connect to my SME.
It has to be Putty first (and leave it connected because that provides the tunnel), then browser second.

Cheers
Ian
1. Putty connection
2. Log in as root
3. keep putty and Switch to FF
4. Address bar: https://localhost/server-manager or https://127.0.0.1/server-manager (which is localhost) and page not available.

but

1. Putty connection
2. Log in as root
3. elinks: https://localhost/server-manager works fine

So I think that it has to do with my tunnel and/or forwarding of 443 and I'm doing something wrong but I don't know what

Thanks

Syv

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: remote access to server manager
« Reply #9 on: June 17, 2014, 07:23:19 AM »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: remote access to server manager
« Reply #10 on: June 17, 2014, 04:15:50 PM »
are you able to do it without putty ?

http://wiki.contribs.org/Useful_Commands#Access_to_the_server-manager_through_SSH

1. I have never tried to access server-manager without the putty from outside of the network
2. I have often connected w/o problem to the command line /server through SSH straight w/o putty.

I will only be able to try that next week when I'm out.

Thanks

Syv

Offline Xavier.A

  • ****
  • 104
  • +0/-0
Re: remote access to server manager
« Reply #11 on: June 17, 2014, 06:28:48 PM »
ElFroggio

to use with putty this command line :
Code: [Select]
user@[your-pc]$ ssh user@[public-ip] -p 31337 -L 6660:localhost:443

1) port 31337 (just an exemple u can use one of the 65535 numbers of port) > u need to open the port 31337 in your router (firewall) and to forward it to the SME Server
2) in the SME Server > change the SSH port to 31337 if it was 22  >;-)
3) enter the good configuration in Putty >
Session panel : IP address=public-ip Port=31337
SSH Tunnels panel : Source port=6660 Destination=127.0.0.1:443 > [Add] > [Open]
4) use your favorite browser with https://127.0.0.1:6660/server-manager

:-X
“When the wise man points to the moon, the fool looks at the finger.”