[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: remote login script



Amish Rughoonundon wrote:

Hi,
I would like to do something only when i remote login to my debian box. I would like to run export DISPLAY=[client ip]:0.0 but i don't want linux to do this if I login on the box itself. Thanks
Amish


I take it you log in using ssh? If so, try ssh -X or ssh -Y. This tunnels your X through ssh.
You have to allow X-forwarding in /etc/sshd_config though



Reply to: