![]() Don't tamper with the $DISPLAY setting yourself, because it's the effect of ssh not being able to establish a tunnel, not the cause. Check any errors in your log files (particulary on the server side) and try ssh with verbose output -v or even -vv or -vvv and look for clues). If your are running from XQuartz, this means that (for one reason or another) ssh wasn't able to setup a Xforwarded session. $DISPLAY errors: ssh should be taking care of setting the $DISPLAY variable."Connection refused": check your firewall settings (on both ends) and check if the ssh server (sshd) is running on the receiving side.Try xeyes for example to have X look back at you. You should be logged in to your server.In the terminal type: ssh -X (you can also use -Y instead of -X).Start a XQuartz terminal by starting XQuartz and pressing ⌘+ n.I've been using mintty ever since I found out about it. You can select it in: Select Packages > Shells > mintty. Your firewall (on both ends) should allow for traffic over port 22. Another option would be to install mintty from within the Cygwin Setup.Your sshd server should be running on the server side.The :0.0 part of the DISPLAY variable denote the display and the screen of an X server. Typically this can be overriden by running the client with a -display or -d command line option. Set the X11Forwarding option (most commonly found in /etc/ssh/sshd_config): X11Forwarding yes (don't forget to restart the ssh server after editing the sshd_config file). The DISPLAY environment variable instructs an X client which X server it is to connect to by default. ![]() Brian Malehorn at 22:22 Add a comment 2 Answers Sorted by: 16 I was having the same problem and was able to solve. But if you're looking for a no-nonsense editor that will actually work, use nano. You need to allow XForwarding on your server. at 21:50 Are you ssh'd into this server If so you need to enable 'X forwarding' in your ssh client.You need to have XQuartz installed on the client side (check that it's working for your account by running XQuarts and starting a local terminal).Prerequisites to run X applications on OS-X: Also make sure you have XForwarding set on the serverside and restart sshd after adjusting it. I think in your specific case, try to run ssh from XQuarts instead of running it from the terminal. I'll give a generic answer here, because other people might be struggling to setup X forwarding on a Mac here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |