Re: openSSH, X11Forwarding, and PuTTy
From: Steve Bassler (bassmstr.REMOVE.THIS@ONCE.adelphia.net)Date: 06/27/02
- Next message: toylet: "Re: PuTTY with Linux"
- Previous message: Mike Iglesias: "Re: Upcoming OpenSSH vulnerability"
- In reply to: Richard E. Silverman: "Re: openSSH, X11Forwarding, and PuTTy"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Steve Bassler <bassmstr.REMOVE.THIS@ONCE.adelphia.net> Date: Wed, 26 Jun 2002 23:36:40 GMT
This is exactly what I was looking for - thank you very much!
I had been looking at the xauth command, but being somewhat new to X, the man page
was not exactly making thinks clear. (I've been using it blindly for a few years but never needed
to understand much of what it did.)
Can you point me to any good source of understanding, or a reference for newbies? I'm sure
people are going to be asking me how all this works and what the various parts do.
Again, thanks!
Steve
On 25 Jun 2002 22:32:14 -0400, slade@shore.net (Richard E. Silverman) wrote:
> >>>>> "Steve" == Steve Bassler <bassmstr.REMOVE.THIS@ONCE.adelphia.net> writes:
>
> Steve> The problem is that once they sudo (or su) to the non-login
> Steve> account, they lose their connection to the SSH tunnel.
>
> You didn't say specifically what happens, or quote any relevant error
> messages. I will guess that they don't "lose their connection," but
> rather you start to get xauth errors. You need to copy the xauth key for
> the SSH proxy X display to the new account (or if the new account is root,
> just point to the existing file). E.g.:
>
> foo@this.host.com% echo DISPLAY
> localhost:10
> foo@this.host.com% xauth list `hostname`:10
> this.host.com:10 MIT-MAGIC-COOKIE-1 6969d9f88ad50c1e96587090ed117e76
> foo@this.host.com% su - bar
> Password:
> bar@this.host.com% xauth add this.host.com:10 MIT-MAGIC-COOKIE-1 6969d9f88ad50c1e96587090ed117e76
> bar@this.host.com% setenv DISPLAY localhost:10
> bar@this.host.com% xlogo
>
> --- OR ----
>
> foo@this.host.com% su -
> Password:
> root@this.host.com# setenv XAUTHORITY ~foo/.Xauthority
> root@this.host.com# setenv DISPLAY localhost:10
> root@this.host.com# xlogo
>
> --
> Richard Silverman
> slade@shore.net
- Next message: toylet: "Re: PuTTY with Linux"
- Previous message: Mike Iglesias: "Re: Upcoming OpenSSH vulnerability"
- In reply to: Richard E. Silverman: "Re: openSSH, X11Forwarding, and PuTTy"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]