Remote Access to machine without having to login

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Remote Access to machine without having to login

Postby eddie1234567 on Sun Sep 23, 2012 5:38 pm

Hi I am trying to set up my new Mint Maya machine so I can log into it remotely.

I am using xvnc4viewer to remote, but I have to go to the remote machine and log into it first, and then come back to my machine to then use the remote software, wich sot of defeats the porpoise

Any pointers will be greatfully recieved
eddie1234567
Level 1
Level 1
 
Posts: 1
Joined: Sat Sep 22, 2012 4:54 pm

Linux Mint is funded by ads and donations.
 

Re: Remote Access to machine without having to login

Postby CalcProgrammer1 on Sun Sep 23, 2012 11:33 pm

On my Ubuntu 12.04 server I'm running xrdp which uses a separate login session and the RDP (Microsoft Windows Remote Desktop) Protocol. I also have VNC server running, though I have configured it to auto-login so VNC is available as soon as the machine is booted (and it runs 24/7 on a UPS so it rarely reboots). I would suggest either trying out xrdp or just configuring your machine to automatically log in. Also I recommend installing an SSH server (sudo apt-get install ssh) which allows you to get terminal access to the machine regardless of whether the desktop environment is running/logged in or not. You can also set up xtightvnc4server (I think that's the name, can't remember, been a while since I've used it) to launch a separate desktop session for your VNC remote logins (so your computer may be logged out or logged in, either way the remote desktop session will not have any effect on the local desktop). I used this once on a Debian system where I would SSH login, start the xtightvnc4server (I think it was just 'xtightvnc4server' to start the server) and then connect to the server with my VNC client.

There are tons of other options as well, but my recommendations would be SSH, xrdp, auto-login, and maybe xtightvnc4server for multi-session use. xrdp uses xtightvnc4server as a back-end component, so your xtightvnc4server session and xrdp session will likely be the same thing over two different protocols.
CalcProgrammer1
Level 1
Level 1
 
Posts: 4
Joined: Sun Sep 23, 2012 11:18 pm

Re: Remote Access to machine without having to login

Postby CyberTaff on Mon Sep 24, 2012 10:32 am

I use teamviewer to log in remotely. You can set up an unattended session with a password which means you don't have to touch the remote system (Teamviewer just needs to be running). Great software which is very easy to use.
CyberTaff
Level 1
Level 1
 
Posts: 25
Joined: Fri Mar 26, 2010 2:07 pm

Re: Remote Access to machine without having to login

Postby irishwoody on Tue Sep 25, 2012 3:18 pm

K - this is how I do this...May be better ways but it works for me.

1. Open a ssh session to your remote machine using normal ssh command.
Code: Select all
ssh user@remote_server

this opens a remote terminal session. You need to have openssh server installed and running on remote site. i also use public key crypt to authenticate ssh sessions, but thats another issue. Thing is open the remote terminal session, then you can start the vncserver remotely.

2. When session is running then start X11VNC server on remote machine - even if not logged (no X screen running) but mdm is running
If there is no one logged into X session on the remote session you need to use a command like
Code: Select all
sudo x11vnc -auth /var/lib/mdm/:0.Xauth


You can also use
Code: Select all
sudo x11vnc -auth guess


If you are logged in and have X session running the command
Code: Select all
x11vnc

is probably enough.

3. On local machine start a vnc viewer, point to remote and then you can log in on remote.

I use ssh to tunnel vnc into remote site. - I only leave 1 specific ssh port open on remote machine - all other ports closed including standard vnc 5900,5901.... are closed

this opens a remote terminal session. If there is no one logged into X session on the remote session you need to use a command like
Code: Select all
sudo x11vnc -auth /var/lib/mdm/:0.Xauth



Anyone else here do similar ? Theres probably even smarter ways of doing this but thats my 2c worth.

Woody
irishwoody
Level 1
Level 1
 
Posts: 36
Joined: Wed May 09, 2012 5:50 am


Return to Newbie Questions

Who is online

Users browsing this forum: franceis, JeremyB, Yahoo [Bot] and 24 guests