LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH problems with modem login (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-problems-with-modem-login-148058/)

CypherBeginner 02-19-2004 12:00 PM

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.

RolledOat 02-19-2004 12:07 PM

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.

CypherBeginner 02-19-2004 12:39 PM

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.

RolledOat 02-19-2004 12:56 PM

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.

CypherBeginner 02-20-2004 06:50 AM

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.

RolledOat 02-20-2004 09:41 AM

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.


All times are GMT -5. The time now is 03:30 PM.