LinuxQuestions.org
Review your favorite Linux distribution.
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-19-2004, 12:00 PM   #1
CypherBeginner
LQ Newbie
 
Registered: Feb 2004
Location: Utah
Distribution: Fedora Core 1
Posts: 15

Rep: Reputation: 0
Question SSH problems with modem login


Linux newbie....

I have been working with ssh for about 3 days now. I am attempting to log into another computer and use my home computer as the xserver. I am using the following script

mycomputer% xhost <remoteComputerName>
mycomputer% ssh -X <username@remoteComputerName>
mycomputer% <enter the password>

remoteComputer% setenv DISPLAY <IP address of mycomputer>:0.0

I have been able to make this work successfully at my school's computer lab where they have a lan connection. At home, I have a dial up service. Using KPPP, I see two IP addresses: Local Address and Remote Address. I have tried both as the IP address with no success.

Could anyone help me figure this out?

P.S> I use the setenv DISPLAY option because the system cannot seem to grab my computer name when I ssh in.
 
Old 02-19-2004, 12:07 PM   #2
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
You mean
xhost + <remotecomputername>
and remotecomputername IP is in your /etc/hosts file?

also,
setenv is used by csh.
After you do the setenv, what does
env |grep DISPLAY show?

you may need
DISPLAY=<mycomputerIP:0.0> export DISPLAY
for bash instead

I do this all the time over dialup, what error did you get when you spawn an X program remotely?

R.O.
 
Old 02-19-2004, 12:39 PM   #3
CypherBeginner
LQ Newbie
 
Registered: Feb 2004
Location: Utah
Distribution: Fedora Core 1
Posts: 15

Original Poster
Rep: Reputation: 0
The Error message is

centroid 3% emacs: Cannot connect to X server 216.190.13.182:0.0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.

I believe from the message that it is getting the right DISPLAY, it just can't send to it.

I also have tried xhost both ways.
 
Old 02-19-2004, 12:56 PM   #4
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
Is, or was, 216.190.13.182 the local Address from the KPPP details? For grins,
just try xhost + (open all connections).

After connecting, see whatthe display is.
env |grep DISPLAY

Try it without the -X and then try setting DISPLAY

R.O.

Last edited by RolledOat; 02-19-2004 at 12:57 PM.
 
Old 02-20-2004, 06:50 AM   #5
CypherBeginner
LQ Newbie
 
Registered: Feb 2004
Location: Utah
Distribution: Fedora Core 1
Posts: 15

Original Poster
Rep: Reputation: 0
Not the DISPLAY, probably something with the Modem or ISP

centroid 1% env | grep DISPLAY
DISPLAY=:0
centroid 2% setenv DISPLAY 216.190.11.18:0.0
centroid 3% env | grep DISPLAY
DISPLAY=216.190.11.18:0.0

The configuration script on login is a little wacky. I am thinking that maybe the ISP that I see when going to the KPPP and webpages may not be correct or that maybe my modem service has somekind of firewall(?). I am not sure. I am going to try going to my in-laws over the weekend and plug my computer into their DSL and then see if I still have problems. Don't lose too much sleep over this, OK. (grin)

S.
 
Old 02-20-2004, 09:41 AM   #6
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
No, I like challenges :-). Now, there is one thing. What is the remote X program that you are attempting to start up. Several times I have seen programs that, internally as part of their startup, reset the DISPLAY environment (assume that it isn't set, reset to localhost:0 kind of thing). Start with the most basic, try to remote display an xterm. That is my 'basic test' when I remote display.

You can always
tail -f /var/log/messages
to see if there are errors when the remote session attempts to connect.

Keep me posted.

R.O.
 
  


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
SSH Login | Need help !! xedios Linux - Software 0 12-21-2004 12:16 PM
So I got my modem working...now I'm having login problems... RoaCh Of DisCor Mandriva 2 04-10-2004 12:46 AM
ftp login -- ssh no login waffe Linux - General 4 12-27-2003 12:42 AM
SSH Login Again gsibble Linux - Newbie 13 08-11-2003 03:15 AM
SSH Login gsibble Linux - Newbie 4 08-10-2003 04:54 AM


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

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