Koozali.org: home of the SME Server

Remote Access Problem

Offline cvlcc

  • ****
  • 102
  • +0/-0
    • http://Cvlcc.com
Remote Access Problem
« on: November 03, 2009, 06:19:11 AM »
I'm Trying to get remote access through the GUI I have ssh access with WinScp and putty but I'm having a problem with remote access https:xxx.xxx.xxx.xxx/server-manager Can somebody help this is on two servers one is 7.3 and the other is 7.4
My we all be so humbled, To ask the questions and get straight answers. Sooner than later. Thank You For Your Time

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Remote Access Problem
« Reply #1 on: November 03, 2009, 07:19:51 AM »
cvlcc

Please read the online manual as this is clearly covered in the server manager remote access panel section.
You need to add the remote host IP(s) to allow access from that/those host(s).
« Last Edit: November 03, 2009, 08:57:16 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cvlcc

  • ****
  • 102
  • +0/-0
    • http://Cvlcc.com
Re: Remote Access Problem
« Reply #2 on: November 03, 2009, 07:24:34 AM »
I have put the ip address xxx.xxx.xxx.xxx and set the 255.255.255.0
Before I had the system access before I crash one server and I did an upgrade on the other server to 7.4
« Last Edit: November 03, 2009, 07:30:34 AM by cvlcc »
My we all be so humbled, To ask the questions and get straight answers. Sooner than later. Thank You For Your Time

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Remote Access Problem
« Reply #3 on: November 03, 2009, 07:36:33 AM »
cvlcc

Please check your log files for more details of any errors generated.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Remote Access Problem
« Reply #4 on: November 03, 2009, 08:31:19 AM »
cvlcc

Please check your log files for more details of any errors generated.
It you can not find the solution after doing so perhaps you can post the error here so we can try and help you. Keep in mind we can not see your system and have no crystal ball.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline arne

  • *****
  • 1,116
  • +0/-4
Re: Remote Access Problem
« Reply #5 on: November 04, 2009, 12:05:20 AM »
I'm Trying to get remote access through the GUI I have ssh access with WinScp and putty but I'm having a problem with remote access https:xxx.xxx.xxx.xxx/server-manager Can somebody help this is on two servers one is 7.3 and the other is 7.4

Yes, I have only tested it locally and in a virtual environment, but I think it should work to use a port 443 ssh tunnel via Putty. (But I believe I used it over Internet in the old days ??)

Putty, log on as root to server -> right click -> Change settings -> SSH tunnels -> Source port: 443 Destination: 123.123.123.123:443 -> Add (123, etc = ip adress.)

Then on same Win PC as the putty client: https://localhost/server-manger

I hope it should work ..

I use to do it the oposite way, first log on and then set up the tunnel, but here is a link: http://realprogrammers.com/how_to/set_up_an_ssh_tunnel_with_putty.html
« Last Edit: November 04, 2009, 12:13:32 AM by arne »
......

Offline cvlcc

  • ****
  • 102
  • +0/-0
    • http://Cvlcc.com
Re: Remote Access Problem
« Reply #6 on: November 04, 2009, 12:44:43 AM »
I have access the servers with putty and with WinScp but I need to find out how /or what file and page on the servers to change the remote connect IP address. In other words I need to change the IPTable that the program uses.
My we all be so humbled, To ask the questions and get straight answers. Sooner than later. Thank You For Your Time

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Remote Access Problem
« Reply #7 on: November 04, 2009, 07:45:03 AM »
I have access the servers with putty and with WinScp but I need to find out how /or what file and page on the servers to change the remote connect IP address. In other words I need to change the IPTable that the program uses.
Why, what are you trying to achieve?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Remote Access Problem
« Reply #8 on: November 04, 2009, 09:08:19 AM »
cvlcc

Quote
...I need to find out how /or what file and page on the servers to change the remote connect IP address.

Unless I misunderstand you, this was already answered in my earlier post ie "....this is clearly covered in the server manager remote access panel section. You need to add the remote host IP(s) to allow access from that/those host(s)."

You also answered that you did add your remote host IP and subnet, I assume to the server manager panel, so what is your problem now ???

To recap, if you want to access from a workstation location with a static IP of 123.456.789.01, so open your server manager, select Security, Remote access, Remote Management, and them enter for Network 123.456.789.01 and Subnet mask 255.255.25.255

Note this will only allow server manager access from workstations connected to that one remote location with that specific IP.

If you are trying to access server manager from multiple locations (that have static IPs) then you need to add each host IP.

If you are trying to acess from locations with a dynamic IP, then use an alternative method, such as establishing a VPN connection first and then access server manager via https://serverLANIP/server-manager or alternatively establish a ssh tunnel (refer earlier comments).
 
« Last Edit: November 04, 2009, 09:12:55 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline axessit

  • *****
  • 213
  • +0/-0
Re: Remote Access Problem
« Reply #9 on: November 09, 2009, 10:01:21 PM »
Quote
If you are trying to acess from locations with a dynamic IP, then use an alternative method, such as establishing a VPN connection first and then access server manager via https://serverLocalLANIP/server-manager

That's what I always do and it works.

Offline cvlcc

  • ****
  • 102
  • +0/-0
    • http://Cvlcc.com
Re: Remote Access Problem
« Reply #10 on: December 24, 2009, 08:21:11 PM »
What I'm looking for is how to change the remote access page through winscp so that I don't have to leave my home to the office to change the remote access IP address?
My we all be so humbled, To ask the questions and get straight answers. Sooner than later. Thank You For Your Time

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Remote Access Problem
« Reply #11 on: December 24, 2009, 11:57:29 PM »
cvlcc

Quote
What I'm looking for is how to change the remote access page through winscp so that I don't have to leave my home to the office to change the remote access IP address?

Firstly if not already done, you should configure Public/Private key access via ssh, and disable password access. See the ssh PP Key Howto. As long as you take your Public key file with you, eg on USB stick, then you can access your server via ssh/putty from anywhere.
Then when you login as root via ssh & putty, you can call up the text based server manager by typing
elinks
Alternatively you can type in
console
to open the admin console menu, from where you would then select the server manager option.

Alternatively at a command prompt as root or as user with root privileges, you can issue the required commands to change any setting on sme.
If you are unsure which db value to change view the configuration database like so:
config show |more
(press a key to scroll)
To help determine which db value to change, change the setting via server manager and then review the most recent entries in the /var/log/messages file. You should then easily see which command to enter and which db setting to change. Keep in mind anything you do in server manager or the admin console, has corresponding command line commands, followed of course by the appropriate required signal-event command.

See the db commands Howto for more info

Try
config show httpd-admin
where
ValidFrom=remothostIP/255.255.255.255

Ultimately if you must use the GUI server manager you can change the remote access host IP via command line or text based server manager, and then open the GUI server manager as you usually would. I don't know why you would want to use the two step process (to get to the GUI server manager) when any configuration change can be done via ssh and the command line anyway ?
« Last Edit: December 25, 2009, 12:22:54 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cvlcc

  • ****
  • 102
  • +0/-0
    • http://Cvlcc.com
Re: Remote Access Problem
« Reply #12 on: December 25, 2009, 12:28:06 AM »
I use the GUI for adding or removing ibays, users,or domains I use ssh, putty for installing rpms that can't be installed by the GUI. Up load the websites to there ibays or change there permissions. All I want to know is where is the file or folder to change the IP address in ssh or putty have to connect to the GUI. I'm having trouble going to my office. you see I'm a disabled vet 100% and I also have cancer and I can't move that easily
My we all be so humbled, To ask the questions and get straight answers. Sooner than later. Thank You For Your Time

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Remote Access Problem
« Reply #13 on: December 25, 2009, 01:01:02 AM »
cvlcc

I gave you the info to learn how to change any setting on your sme via command line. Learning how to do it yourself is the best approach.

As you wish to be "spoon fed" then I'll play Santa Claus:

config show httpd-admin
to view existing settings

Code: [Select]
config setprop httpd-admin ValidFrom 111.222.333.444/255.255.255.255
signal-event remoteaccess-update

(where 111.222.333.444 is your remote host IP)

I think that signal-event command is the correct one, check it or do
signal-event post-upgrade
signal-event reboot

Note the text based server manager is accessible from a ssh command prompt by typing
elinks
then log in as admin
« Last Edit: December 25, 2009, 02:21:17 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cvlcc

  • ****
  • 102
  • +0/-0
    • http://Cvlcc.com
Re: Remote Access Problem
« Reply #14 on: December 25, 2009, 04:42:34 AM »
Thank You So Much, It work great With putty
My we all be so humbled, To ask the questions and get straight answers. Sooner than later. Thank You For Your Time