LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-02-2009, 06:17 AM   #1
arnuld
Member
 
Registered: Dec 2005
Location: Punjab (INDIA)
Distribution: Arch
Posts: 209

Rep: Reputation: 30
Running X in an SSH log-in


My friend is logged into his machine and he is using his GNOME Desktop happily. I am logined into his machine using SSH:
Code:
sumit@sumit:~$ who
sumit    :0           2009-01-02 10:10
sumit    pts/2        2009-01-02 17:25 (192.168.0.228)
sumit@sumit:~$
that 2nd login showing my IP address is from SSH. Now when I want to open some program I get this:
Code:
sumit@sumit:~$ urxvt
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

urxvt: can't open display :0, aborting.
sumit@sumit:~$
which is fine as I using SSH I can work on command line only. I have 2 questions :

  • what if I want to use X program. Can I run it while logined using SSH ?
  • Can I open a new X program onto my friend's Desktop ?
 
Old 01-02-2009, 07:02 AM   #2
sycamorex
Senior Member
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 4,397
Blog Entries: 1

Rep: Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627
Quote:
what if I want to use X program. Can I run it while logined using SSH ?
ssh -X username@xxx.xxx.xxx.xxx

It should do the job. You might want to check /etc/ssh/ssh_config. There's an option:
Quote:
# ForwardX11 no
If this line was uncommented, it would not work, I guess
 
  


Reply

Tags
ssh forwarding


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
ssh log? IchBin Linux - Newbie 9 08-25-2010 03:50 AM
Log all SSH commands at ssh-client. mohammednv Linux - Networking 6 01-26-2008 05:02 AM
cannot log in via ssh tredontho Linux - General 19 07-06-2006 10:54 AM
ssh cant log on!! e1000 Linux - Networking 4 02-16-2004 01:59 PM
SSH Log Crashed_Again Linux - Security 4 01-25-2003 09:56 AM


All times are GMT -5. The time now is 01:24 PM.

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
Open Source Consulting | Domain Registration