LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   X over SSH authorization, how to make the proxy key permanent for each session (http://www.linuxquestions.org/questions/linux-software-2/x-over-ssh-authorization-how-to-make-the-proxy-key-permanent-for-each-session-940841/)

Mikoman 04-20-2012 09:27 AM

X over SSH authorization, how to make the proxy key permanent for each session
 
Hey guys,

can't find any related topic for what i need to ask.

If you know how X over SSH works then you know about the proxy key (MIT or XDM) which is generated for each SSH session with X forwarding enabled by SSH client(am i even right?). This coockie is transfered and pasted to remote server Xauthority file and X clients on it are authenticating to proxy X server (created by SSH server) using this coockie.
But what if the X clients are not local? Do i have to paste the proxy key to all machines running X clients each SSH session? And when the session is over then delete it because it is useless when the session is over? Kinda weird huh? Is there any way to make the key permanent? or simplest way is just to create some script which would distribute the key over machines running X clients and then delete it when its over using script again?

PS: Maybe i am wrong how it works. But i want to know the theory before i will mess something up...

allend 04-21-2012 04:38 AM

You are overthinking this. You do not have to worry about the session cookies when using X forwarding over SSH.

Mikoman 04-23-2012 01:48 AM

Hi Allend. Thanks for reply. I don't have to worry about coockies when i'm running local clients only. But what if i would like to run network clients? How to give them the right coockie?


All times are GMT -5. The time now is 09:46 PM.