LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 03-05-2005, 10:41 AM   #1
shortname
Member
 
Registered: Dec 2004
Location: Georgetown, DE
Distribution: Gentoo (Kernel-2.6.18-gentoo-r5, customized :))
Posts: 101

Rep: Reputation: 15
difficulty using ssh to connect to X11 remotely


I have a home network set up in my house, and I have been playing around with remote login for a few days (as I have all IP's and passwords for the machines).

One thing that I have wanted to be able to do is use ssh with the -X or -x option to connect to X11 on a remote machine so that I can send users messages or start programs on their desktops.

Is this possible? If so, what am I doing wrong? Here's what I've been typing in at the terminal:

ssh -X mia@192.168.1.101

This allows me to login to the remote machine, but will not allow me to connect to the X server.

P.S. Does it make a difference if I'm running KDE? (although I'm almost 100% sure it shouldn't)

Thanks,

Jeremy Davis Pedersen

 
Old 03-05-2005, 10:55 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
The -X option allows you to start applictions on your X Server but run them on the remote machine.

If you want to run the applications on the remote X server then export the display number then just run the appliction:
export DISPLAY="127.0.0.1:0"
 
Old 03-05-2005, 11:34 AM   #3
shortname
Member
 
Registered: Dec 2004
Location: Georgetown, DE
Distribution: Gentoo (Kernel-2.6.18-gentoo-r5, customized :))
Posts: 101

Original Poster
Rep: Reputation: 15
Actually, I'm trying to start apps on their desktop, as a way to send them messages, or help them find an application without getting up off my butt ;-)

Thanks,

JDP
 
Old 03-05-2005, 11:52 AM   #4
shortname
Member
 
Registered: Dec 2004
Location: Georgetown, DE
Distribution: Gentoo (Kernel-2.6.18-gentoo-r5, customized :))
Posts: 101

Original Poster
Rep: Reputation: 15
P.S. I have tried exporting to the display, but it gives me an error. Here's what I've been typing:

ssh -X mia@192.168.1.101

password:******* <---my password

mia@5[/]$ export DISPLAY="127.0.0.1:0"

mia@5[/]$ konsole

konsole: cannot connect to X server 127.0.0.1:0

Am I doing something wrong?

P.S. keep in mind I'm a n00b
 
Old 03-05-2005, 12:21 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Try getting the user to run "xhost +localhost" to allow you to connect.
 
Old 03-05-2005, 12:46 PM   #6
shortname
Member
 
Registered: Dec 2004
Location: Georgetown, DE
Distribution: Gentoo (Kernel-2.6.18-gentoo-r5, customized :))
Posts: 101

Original Poster
Rep: Reputation: 15
Apparently that lets me use their binary for the "konsole" program, but it runs on my X server, what I need to do is get konsole to run on their desktop not mine.

AM I still doing something wrong?

THanks again ;-D

JDP
 
Old 03-05-2005, 12:53 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Just realised you were connecting with -X. You only do that if you want to run it on your X server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I connect to Webmin remotely? wslyhbb Linux - Networking 3 11-18-2010 04:03 AM
Can't remotely ftp connect jake3988 *BSD 10 04-16-2005 12:52 PM
connect remotely pyre Linux - Newbie 8 03-19-2004 11:20 AM
Help: Unable to connect remotely tejpatil Linux - Newbie 3 02-14-2004 08:36 PM
cannot connect remotely noizez Linux - Networking 2 04-03-2003 09:53 PM


All times are GMT -5. The time now is 10:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration