I have a PHP program and in order to run a batch file, I have typed:
$> xhost + $> ssh username@hostname -X $> ssh username@hostname -Y
And, it works fine. But, my problem is that when I restart my computer or download something, I have to do this all over again.
Is there a way to enable X11 forwarding permanently on a pc? I have to mention that X11 forwarding is yes in configuration file, but I have to type the mentioned commands for my GUI to work.