Re: X-11 forwarding and ssh
From: Cameron Hutchison (camh@zip.com.au)Date: 01/22/02
- Next message: Dimitri: "Connection closed by the remote host"
- Previous message: joe user: "help with PPP over SSH tunnel"
- In reply to: viscido@u.washington.edu: "Re: X-11 forwarding and ssh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Cameron Hutchison <camh@zip.com.au> Date: Tue, 22 Jan 2002 11:11:09 +1100
On Tue, 22 Jan 2002 09:21:29 +1100, viscido wrote:
> [fiddler]% setenv
> DISPLAY=:0.0
It looks like your login script on fiddler is overriding the DISPLAY
variable. When you ssh into fiddler with X11 forwarding enabled, sshd
should set your display to something like fiddler:10.0 (if may be greater
than 10 if other connections have X11 port forwarding enabled).
Check your .profile (or the startup script of whatever shell you are using
on fiddler), and make sure you dont set DISPLAY if it is already set.
> I tried doing a setenv (haven't needed to use this command in a long
> time), and here's what I got:
>
> [tetra]% setenv DISPLAY fiddler.fish.washington.edu:0.0
> [tetra]% xterm &
> [2] 1154
> Xlib: connection to "fiddler.fish.washington.edu:0.0" refused by server
> Xlib: Client is not authorized to connect to Server xterm Xt error:
> Can't open display: fiddler.fish.washington.edu:0.0
Thats normal. You're trying to connect to your X server outside of the ssh
connection, but you have not given the user on fiddler or the machine
fiddler permission to connect to the X server. You could transport your
.Xauthority file from your source machine to fiddler or run "xhost
+fiddler.fish.washington.edu" on your source machine, but neither will
have the X connection encrypted through SSH (and xhost +hostname is not a
good idea anyway).
- Next message: Dimitri: "Connection closed by the remote host"
- Previous message: joe user: "help with PPP over SSH tunnel"
- In reply to: viscido@u.washington.edu: "Re: X-11 forwarding and ssh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|