LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-21-2008, 10:22 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
Remotely Login using SSH and Vino-Server


I usually remotely connect to a client server to make adjustment via the CLI. Occasionally I have to login into the desktop to understand some issues that my customer are trying to explain via Vino-Server. I have notice that sometimes when I attempt to login via ssh, I sometimes can see that a user has not logged into the GUI desktop which means that I cannot login into the remote desktop session to resolve any issues via the GUI. My question is:

How can I remotely login via ssh and start a gnome or kde session for the user account that I am trying to resolve his or her issue? I hope I said that right?

Last edited by metallica1973; 11-21-2008 at 10:27 PM.
 
Old 11-22-2008, 03:57 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
I think I got it. You want to make the client box do what it would do if the user was there typing his or her password into gdm, kdm or xdm, then start vino-server and connect to it, such that you can do stuff to the GUI.

It should be fairly straightforward.
- become root
- /etc/init.d/gdm start
- start a VNC server (vino, x11vnc) on the just created X instance
- connect with your favorite client and log in.
- start a VNC server in the logged-in user's session
- connect with your favorite client
- profit

Run programs in the X server by running root@client~$ DISPLAY=:0 xterm, replacing :0 with the name of the display you want to run on (ps -Fe | grep X should give a hint), and xterm with the command you want to run.

Alternatively, become the user and run startx. If they have a sucky X startup script, run gnome-session manually.
 
Old 11-23-2008, 06:44 PM   #3
krunge
Member
 
Registered: Mar 2007
Posts: 39

Rep: Reputation: 18
Quote:
Originally Posted by metallica1973 View Post
How can I remotely login via ssh and start a gnome or kde session for the user account that I am trying to resolve his or her issue? I hope I said that right?
There are some ideas for how to connect via VNC to the GDM/KDM login greeter here:

http://www.karlrunge.com/x11vnc/faq....isplay-manager

These assume you have the required permissions.

There are also ways to do what you want but they avoid using the physical graphics hardware: e.g. vncserver, xdmcp (e.g. Xnest), or nx.

Last edited by krunge; 01-27-2009 at 07:28 PM.
 
Old 11-23-2008, 10:23 PM   #4
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
I will give it a shot, many thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't login using ssh (via Putty) remotely blinton25 Linux - Software 11 05-27-2007 01:17 AM
Can't login remotely using SSH or Telnet jviezel Linux - Networking 4 12-31-2006 03:12 PM
can't login remotely to SSH server using FileZilla rob_xx17 Linux - Networking 5 08-22-2006 07:35 PM
Access Denied when I try to login remotely to my SSH server running on Cygwin. andrew_cz General 0 05-02-2006 09:46 AM
help with setting up login to server remotely using ssh LAdProg2005 Linux - Software 2 10-05-2005 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration