I regularly use the "right click → open in remote terminal" functionality of Nautilus in Ubuntu 22.04. I don't know the command, but it seems it is doing ssh blah@host
, and I would like to add the -X
flag so I can open GUI applications from this terminal. How can I modify it?
Instead of trying to modifying that, you could modify your
~/.ssh/config
to enabledForwardX11
(the config file equivalent of-X
) for that host. That will be much simpler to accomplish. For clarity, I'm going to useblah@some-server
instead ofblah@host
.Edit
~/.ssh/config
, and add:(The indentation is optional, but it makes it easier to understand long config files.)
If you want to specifically match the combination of user
blah
and serversome-server
, then useMatch
instead (as suggested by this U&L answer):