Can't extract X cookie w/ ssh forwarding
From: Ian Pilcher (pilchman_at_attbi.com)
Date: 05/03/03
- Next message: Darren Tucker: "Re: Failed none - How to interpret"
- Previous message: John Doe: "Putty command line execution possible?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 03 May 2003 21:38:06 GMT
I am writing a script that needs to run an X client as a different user.
I am using 'xauth extract - $DISPLAY' to get the appropriate cookie.
This works fine for local users. When using ssh with X forwarding,
however, it doesn't work. Here is a brief example:
[pilcher@home pilcher]$ ssh root@localhost
root@localhost's password:
Last login: Sat May 3 12:13:45 2003 from home
[root@home root]# xauth extract - $DISPLAY > /dev/null
No matches found, authority file "-" not written
[root@home root]# xauth list
home/unix:10 MIT-MAGIC-COOKIE-1 cbcfa5cca61304e806df71fd71ac9647
home/unix:11 MIT-MAGIC-COOKIE-1 10e283e98dfe402cc6fb826b0341e43e
[root@home root]# echo $DISPLAY
localhost:11.0
Any ideas? Thanks!
-- ======================================================================== Ian Pilcher pilchman@attbi.com ========================================================================
- Next message: Darren Tucker: "Re: Failed none - How to interpret"
- Previous message: John Doe: "Putty command line execution possible?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|