remote $ grep X11 /etc/ssh/sshd_config ~/.ssh/* local $ grep -r DISPLAY /opt/local/etc /sw/etc /etc 2>/dev/null local $ grep DISPLAY ~/.*rc ~/.login ~/.*profile ~/.MacOSX/ist 2>/dev/null ![]() Edit or create the file "~/.ssh/config" on the Mac and add these three lines:.Enable the first option: "Authenticate connections". Start XQuartz, go to Preferences with "Cmd-," and go to the Security tab.Ssh -Y : "Warning: No xauth data using fake authentication data for X11 forwarding." Ssh -X : "Warning: untrusted X11 forwarding setup failed: xauth key data not generated." SSH will suddenly fail with one of the following error messages: Unfortunately, these two files are often overwritten during a macOS update,Īnd the specific SSH settings that XQuartz needs are then lost. The XQuartz installer should automatically point SSH to the correct location of xauth by editing ssh_config and sshd_configĭuring its post-install script. Have an administrator edit that system's sshd_config file. If you are sshing to another system, be sure that remote server allows ssh forwarding. Tighter security, it is preferred over 'ssh -Y' see the SSH manual. You can forward X11 over an SSH connection by using either 'ssh -X' or 'ssh -Y'. (MacPorts' X11.app) launchctl unload -w /Library/LaunchAgents/ (Apple's X11.app) launchctl unload -w /System/Library/LaunchAgents/org.x.ist (XQuartz.app 2.7.x and earlier) launchctl unload -w /Library/LaunchAgents/.plist (XQuartz.app 2.8.x and later) launchctl unload -w /Library/LaunchAgents/
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |