Log into the computer that you want to forward from and open the configuration file
/etc/ssh/sshd_config
Make sure that the following line is uncommented and has a ‘yes’ setting:
X11Forwarding yes
Reload the settings by restarting the sshd service with:
sudo systemctl restart sshd
Now, from your other PC, try:
ssh -X user@192.168.1.135
And just type ‘firefox’ or whatever browser is installed, and see if that launches. If it works, just close it and launch whatever program you want. If it fails, let me know what the error is.
Ah, you are right.
This is the configuration I have in my arch and I am able to ssh -X without problem. Not sure what else to suggest - other than maybe trying rebooting both computers.
Log into the computer that you want to forward from and open the configuration file
/etc/ssh/sshd_config
Make sure that the following line is uncommented and has a ‘yes’ setting:
X11Forwarding yes
Reload the settings by restarting the sshd service with:
sudo systemctl restart sshd
Now, from your other PC, try:
ssh -X user@192.168.1.135
And just type ‘firefox’ or whatever browser is installed, and see if that launches. If it works, just close it and launch whatever program you want. If it fails, let me know what the error is.
Thanks for sharing this, @Sal@mander.xyz! I love that this works without having to download extra software too.
You are welcome! Yes, the less the better :-)
deleted by creator
Actually, what is the output of ‘echo $DISPLAY’ when you are logged in via SSH?
deleted by creator
That looks correct
deleted by creator
Ah! Cool! Good job :-)
On the computer that you are using to SSH from, go to
/etc/ssh/ssh_config
And also set:
ForwardX11 yes
Then try to ssh again.
deleted by creator
Ah, you are right. This is the configuration I have in my arch and I am able to ssh -X without problem. Not sure what else to suggest - other than maybe trying rebooting both computers.