I'm on Ventura. I'm trying to log in to a remote Linux machine with X11 forwarding enabled. I followed these steps:
- Install XQuartz (from the downloadable package on their website, not from
brew
). - Reboot my Mac
- Enable "allow connections from network clients" in XQuartz
- Ensure X11 forwarding is enabled in the remote's
sshd_config
and restart remotesshd
- Disable the firewall on my Mac
ssh -X user@remote
from the terminal within XQuartz- Confirm that the
DISPLAY
env var is set on the remote xterm
on the remote
And nothing happens; xterm
just freezes. There are no error messages, but also no windows appear.
I've also tried:
- Enabling/disabling "authenticate connections" in XQuartz
ssh -Y
instead ofssh -X
- Manually setting the remote
DISPLAY
variable tomy_ip_address:0
- Waiting for a few minutes after running
xterm
just in case I was being impatient
But all have the same effect: running xterm
just hangs with no errors.
What else can I try?