LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2004, 07:52 PM   #1
fabs
LQ Newbie
 
Registered: Feb 2004
Posts: 12

Rep: Reputation: 0
problems getting remote ssh/X connection working


i'm having trouble getting a remote X connection going with ssh.

I can connect fine to the machine (an HPUX server) with
Code:
 $ x -auth -l username remotehost
window manager loads and everything.

but i can't get it to work over a secure connection whatever i try and do i get the message about could not connect to display.

the main jist of what i think i want to do is
Code:
 $ ssh -X -l username remotehost
but i can't get it to work. init is at runlevel 3, and insecure connections work fine, but i don't know what to try now, and all the documentation i've read doesn't seem to help more than saying to set the -X tag.

Thanks!

fabs
 
Old 02-27-2004, 08:16 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
check and see if these settings are set in /etc/ssh/sshd_config
Code:
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
ssh in again, check the DISPLAY variable, it should be localhost:10.0, launch an X app, if it works then you're tunneling through ssh.
 
Old 02-28-2004, 09:32 AM   #3
fabs
LQ Newbie
 
Registered: Feb 2004
Posts: 12

Original Poster
Rep: Reputation: 0
uh oh.....

Code:
$ ssh -l username remotehost
/etc/ssh/ssh_config: line 40: Bad configuration option: X11UseDisplayOffset
/etc/ssh/ssh_config: line 41: Bad configuration option: X11UseLocalhost
/etc/ssh/ssh_config: terminating, 2 bad configuration options
 
Old 02-29-2004, 02:57 PM   #4
fabs
LQ Newbie
 
Registered: Feb 2004
Posts: 12

Original Poster
Rep: Reputation: 0
uh oh....mass stupidity.....DisplayOffset, not UseDisplayOffset....oops :P
well, have (kinda) solved things by using
Code:
$ ssh -XAL user hostname
however, i'm running into problems because my use of the system is (primarily) based around starting an environment with the start command. How do i get this to work??? It complains about not recognising window names if i run it in init runlevel 5, and i get the (all too) familiar 'cannot connect to display' message if i go into runlevel 3 first.

Thanks,
fabs
 
Old 02-29-2004, 10:25 PM   #5
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
I was actually talking about "sshd_config"(note the 'd') which is the config file for the daemon on your ssh server, not the client.
You have to start an X server on the localhost first, then you ssh in to launch you window manager etc.

Last edited by Demonbane; 03-01-2004 at 10:24 PM.
 
Old 03-01-2004, 09:02 AM   #6
fabs
LQ Newbie
 
Registered: Feb 2004
Posts: 12

Original Poster
Rep: Reputation: 0
ah, ok. next newbish question......how do i start X without loading the window manager? i.e. in such a way that "start env_name" will work? many thanks
 
Old 03-01-2004, 10:24 PM   #7
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
run "X" or "XFree"
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 34 05-24-2013 09:28 AM
problems with X-apps when executed on remote host via ssh numerous Linux - Software 1 01-17-2005 07:08 PM
Remote X with Cygwin, ssh problems kuronai Linux - Networking 3 06-03-2004 04:18 AM
VIM via remote SSH connection causes seg fault nkendrick Linux - Software 1 11-08-2003 06:57 AM
Remote connection (telnet & SSH) woes marioman Linux - General 2 09-29-2003 10:23 AM


All times are GMT -5. The time now is 03:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration