trash
Salamander
link
fedilink
2
edit-2
2M

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.

Salamander
link
fedilink
12M

You are welcome! Yes, the less the better :-)

@OptimusPrime
creator
link
fedilink
0
edit-2
25d

deleted by creator

Salamander
link
fedilink
12M

Actually, what is the output of ‘echo $DISPLAY’ when you are logged in via SSH?

@OptimusPrime
creator
link
fedilink
0
edit-2
25d

deleted by creator

Salamander
link
fedilink
12M

That looks correct

@OptimusPrime
creator
link
fedilink
0
edit-2
25d

deleted by creator

Salamander
link
fedilink
1
edit-2
2M

Ah! Cool! Good job :-)

Salamander
link
fedilink
12M

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.

@OptimusPrime
creator
link
fedilink
1
edit-2
25d

deleted by creator

Salamander
link
fedilink
1
edit-2
2M

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.

Create a post

Ask specific questions about how to do something with linux

General linux discussion on lemmy.ml

Create Post From:
lemmy.ml

Community icon by Alpár-Etele Méder,
licensed under CC BY 3.0

  • 0 users online
  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 17 users / 6 months
  • 22 subscribers
  • 8 Posts
  • 16 Comments
  • Modlog