Remote access to a Linux box?

Commissario
Joined
16 Oct 2002
Posts
2,662
Location
In the radio shack
I have a server at a remote site that is difficult to access physically (half a mile walk, three sets of keys and a telephone call) so I need to be able to get to the GUI remotely.

It's running CentOS 5 and is behind a Netgear ADSL router.

Is there something I can install on the server which will allow me to do this?

Thanks.
 
Soldato
Joined
10 Oct 2005
Posts
8,706
Location
Nottingham
Why do you need to access the GUI on the server ... is it for running an application gui rather than actually needing a full interface? If so have you considered just doing X11 forwarding over SSH to a local X Server?

If you do want to access a full graphical environment another option could be FreeNX.
 
Soldato
Joined
8 Mar 2006
Posts
13,300
Location
Near Winchester
Grrrr, is nothing simple on Linux?

There's 100 ways to do everything. Some ridiculously easy, some hard, what's suitable may be what matters more:
-Just use teamviewer. Pro: Download a thing and run it. Con: The day teamviewer get pwned you are in trouble.
-A free VNC server. Pro: Pretty seure, pretty easy, all teh GUI. Con: bandwidth heavy, port forwarding needed.
-X11 forwarding over SSH. Pro: Already installed I bet. Secure as SSH. Con: May not launch all GUIs. Port forwarding. Windows client end is harder.
-Just using SSH. Pro: Secure fast. Con: Having to know the CLI. Application may be GUI only, yuk.
 
Soldato
Joined
5 Nov 2011
Posts
5,356
Location
Derbyshire
I have a server at a remote site that is difficult to access physically (half a mile walk, three sets of keys and a telephone call) so I need to be able to get to the GUI remotely.

It's running CentOS 5 and is behind a Netgear ADSL router.

Is there something I can install on the server which will allow me to do this?

Thanks.

Is there any reason that SSH access is not enough? Pretty much all tasks can be handled by SSH access. The CLI isn't too bad either, you don't need to learn a whole OS. Just the commands you really need.

Unless it's top secret, what are you needing to get into the GUI to do?
 
Associate
Joined
8 Apr 2008
Posts
1,471
Location
Berks+Powys
The best (by far) way to get a remote screen on a machine is x2go (google). You can create remote sessions with processes running on a remote host, and get a 'local' screen/session using a very optimized version of the x11 protocol.

I use it all day, everyday, and there's nothing even remotely comparable. On a gigabit network the 'remote' screen is /as fast/ as a local one for many operations. However it still scales down to 'slow link' speeds and you can also have a working, usable dev platform with full screen windows from your laptop via slow uplink.

You can also easily 'park' your session, and reconnect from a different machine and get all your windows back.
 
Man of Honour
Joined
17 Nov 2003
Posts
36,743
Location
Southampton, UK
Is there any reason that SSH access is not enough? Pretty much all tasks can be handled by SSH access. The CLI isn't too bad either, you don't need to learn a whole OS. Just the commands you really need.

Unless it's top secret, what are you needing to get into the GUI to do?

Indeed. I very rarely need anything other than putty to administer the hundreds of Linux machines I am responsible for.
 
Associate
Joined
8 Apr 2008
Posts
1,471
Location
Berks+Powys
Indeed. I very rarely need anything other than putty to administer the hundreds of Linux machines I am responsible for.

Administering is one thing, using is another. I develop all day on linux, and I use tools from Eclipse, Geany, other IDEs, Eagle CAD, GtkWave, and plenty of others like OpenSCAD that just won't fit in 'just a terminal'. I don't need a /fancy/ desktop (I use LXDE) but I still need one...
 
Soldato
Joined
5 Nov 2011
Posts
5,356
Location
Derbyshire
Administering is one thing, using is another. I develop all day on linux, and I use tools from Eclipse, Geany, other IDEs, Eagle CAD, GtkWave, and plenty of others like OpenSCAD that just won't fit in 'just a terminal'. I don't need a /fancy/ desktop (I use LXDE) but I still need one...

Why would you have a remote machine in a hard to reach place to use as a daily machine when you can't get remote guy access?

You are comparing in general terms Cli vs gui which is a whole different topic.
 
Associate
Joined
8 Apr 2008
Posts
1,471
Location
Berks+Powys
Why would you have a remote machine in a hard to reach place to use as a daily machine when you can't get remote guy access?

You are comparing in general terms Cli vs gui which is a whole different topic.

You mean, compiling, crunching and stuff on a tiny laptop for example, when I can remote in to a overclocked quad core with 64GB ram and 2 Xeon Phi cards in?

I can access that machine from anywhere, including my lab, that only has a small PC (but 2 big screens) OR I can reattach that same session from the laptop, OR I can go to it's location in the office and pick up what I was doing the same way...
 
Soldato
Joined
5 Nov 2011
Posts
5,356
Location
Derbyshire
You mean, compiling, crunching and stuff on a tiny laptop for example, when I can remote in to a overclocked quad core with 64GB ram and 2 Xeon Phi cards in?

I can access that machine from anywhere, including my lab, that only has a small PC (but 2 big screens) OR I can reattach that same session from the laptop, OR I can go to it's location in the office and pick up what I was doing the same way...

That was kind of my point. Although OP hasn't mentioned yet. I doubt they are going to have a "beast" tucked away in this remote location which is a half hour walk and however many sets of keys away.

Obviously we can't be certain until OP comments but I'm not imagining this is going to be a remote box where they do most of their daily work via RDP. In fact if it was I think they'd have been sacked for not finding a way to RDP in yet.....
 
Commissario
OP
Joined
16 Oct 2002
Posts
2,662
Location
In the radio shack
Sorry, I've had a hectic week.

I might be able to do what I want via CLI. I've enabled port forwarding for port 22 on the router but when I try and SSH in, I'm getting no response from the server. Is there something I need to do to enable access?
 
Soldato
Joined
18 Oct 2002
Posts
5,783
Location
Liverpool :-)
Hi,

as Frozennova has mentioned it could be a firewall rule, but it also could be that SSH server isn't actually installed.

Either way, make sure you use SSH keys to access the box, if you leave it as passwords you're asking for it and you could always change the default port from 22 to something else, it'll stop a lot of the automated bots.

And install Fail2ban to stop brute force attempts on the box :mad:)
 
Man of Honour
Joined
13 Oct 2006
Posts
90,823
You might find webmin useful as well. (Or web panel - though thats a far more comprehensive implementation for a range of server tasks/hosting).
 
Last edited:
Back
Top Bottom