Click to See Complete Forum and Search --> : setting DISPLAY environment over SSH
bruce1271
08-14-2001, 05:43 PM
Hi,
I am using ssh to login to my home Linux form my work Sun workstation. I am tring to start netscape on my linux and have it displayed here at work so I can surf through home.
Is this feasable? I set DISPLAY=myworkip:0.0 and i get the error that cant open display myworkip:0.0
myworkip is a 10.xxx.xxx.xxx ip address. Is this a problem?
I dont even know if I can do this, but I think I can, but I cant get the display correctly set.
any help??
andrzej
08-15-2001, 04:56 AM
Start X on your SUN, from X execute:
ssh -X you@your.home.net
Enjoy.
BTW: I figured it out reading the ssh manpage. It took about a minute. Shame on you.
bruce1271
08-15-2001, 09:37 AM
Hi thanks for the reply. Sun doesnt use -X, but they do use +x. I will try that and see if the connection is forwarded.
thanks
Arvoreen
08-20-2001, 10:41 AM
I ran into a similar problem where I work. I'd ssh to my box, export DISPLAY=<work ip>:0 and it worked fine, then they implemented a DHCP server and a VPN thingy where I work, so all of the IPs changed to 192.168.x.x IPs, so I couldn't do it anymore, as my workstation didn't have a "real" IP. I believe the 10.x.x.x or some subnet thereof are also not "real" IPs, so you may not be able to run remote X apps.
andrzej
08-20-2001, 05:11 PM
The whole point of using ssh is to have encrypted transmission. When you ssh and set display the X traffic goes unencrypted to your port 6000.
Do not set DISPLAY. Use ssh -X (or +x on SUN) instead. Private IP will not be a problem then - when you can ssh, you'll be able to forward X.
In fact I've tested this -X option from an IP in a private range, through NAT to a server in the public IP range.
Gnu/Vince
08-20-2001, 07:48 PM
Is it possible to display a X window in Microsoft Windows? I would love that.
Strike
08-20-2001, 07:56 PM
Originally posted by Gnu/Vince:
<STRONG>Is it possible to display a X window in Microsoft Windows? I would love that.</STRONG>
Yes, find a Win32 X server, run it, ssh into the other machine, run an X app from the command line.
Done.
Strike
08-20-2001, 07:57 PM
and andrzej is right, ssh handles the forwarding of X transparently (without environment variables), so you should never have to set DISPLAY
drstrangelove
08-23-2001, 12:52 PM
Originally posted by Strike:
<STRONG>ssh handles the forwarding of X transparently (without environment variables), so you should never have to set DISPLAY</STRONG>
I have found though, in a windows environment, that you need to have the X server running before you start ssh to have the variables set. Otherwise you need to set them manually.
bruce1271
08-25-2001, 08:20 PM
Hi Guys.
I used +x on my solaris machine and it works fine. A little groggy but oh well.
As far as logging in from windows, there is a great x window .exe called putty.exe it is ssh acceptable and is efficient. look this up on google and download it.
Thanks for the replies