Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: SSH X-11 Port Forwarding on Mac

  1. #1
    Join Date
    Jan 2014
    Beans
    54
    Distro
    Xubuntu 12.04 Precise Pangolin

    SSH X-11 Port Forwarding on Mac

    I've got a MacBook Pro and I was wondering how to X-11 Port forward via SSH from my ubuntu 12.04 lts server? On my Windows laptop i had to download X-ming to handle the port forwarding. Do I have to do that as well on the Mac?

  2. #2
    Join Date
    Jan 2008
    Location
    Bay Area, CA/Kanagawa, JP
    Beans
    248
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: SSH X-11 Port Forwarding on Mac

    since OSX has a similar bash shell, you just need to enable the ssh switch for x11 forwarding, which i believe is
    Code:
    ssh -X user@ip
    Found this on the googles for ya: http://dyhr.com/2009/09/05/how-to-en...-os-x-leopard/

  3. #3
    Join Date
    Jan 2014
    Beans
    54
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: SSH X-11 Port Forwarding on Mac

    For when I specify the port would it be?
    Code:
    ssh -x -p xxxx user@ip

  4. #4
    Join Date
    Sep 2006
    Beans
    7,291
    Distro
    Lubuntu Development Release

    Re: SSH X-11 Port Forwarding on Mac

    Normally it is port 22, which is the default. If you have not gone out of your way to change the port on the OS X machine you can leave that part off when you connect. It will then look for the standard port.

  5. #5
    Join Date
    Jan 2014
    Beans
    54
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: SSH X-11 Port Forwarding on Mac

    I connect to my server outside of the network so I changed the port to a different one for security purposes.

  6. #6
    Join Date
    Sep 2006
    Beans
    7,291
    Distro
    Lubuntu Development Release

    Re: SSH X-11 Port Forwarding on Mac

    Use the port that you configure for sshd then, if it is non standard. But be sure to use the capital X instead of lowercase x, they mean different things. The capital X enables X11 forwarding. I'm not sure how many applications will work with X any more on OS X. You may have to tunnel VNC.

    Edit: going from the Ubuntu machine to the OS X machine should be fine as-is.
    Last edited by Lars Noodén; February 20th, 2014 at 07:00 PM.

  7. #7
    Join Date
    Jan 2014
    Beans
    54
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: SSH X-11 Port Forwarding on Mac

    Vnc?

  8. #8
    Join Date
    Sep 2006
    Beans
    7,291
    Distro
    Lubuntu Development Release

    Re: SSH X-11 Port Forwarding on Mac

    Sorry. I got confused as to the direction. Running programs on the Ubuntu machine and displaying them on the OSX machine should work fine using X11 forwarding. VNC is a clumpier method of displaying remote graphics. But it is insecure, so it has to be tunneled over SSH if used. It's probably not relevant here since X11 should work. If there is a lot of network latency the program can feel sluggish though.

  9. #9
    Join Date
    Jan 2008
    Location
    Bay Area, CA/Kanagawa, JP
    Beans
    248
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: SSH X-11 Port Forwarding on Mac

    You've got it right with -p for port, and as Lars mentioned, it needs to be X, not x

  10. #10
    Join Date
    Mar 2009
    Beans
    1,322

    Re: SSH X-11 Port Forwarding on Mac

    Why mess with the port? By default, the ports match up. I would only move the port if something is exposed to the outside world.

    You want XQuartz on your Mac, and you also might want to look at homebrew for the Mac.

    XQuartz is the best X server I know of for the Mac. Pretty much zero configuration on your part.

    Homebrew http://brew.sh is a bunch of open source software for your Mac, it has a package manager built-in. Everything is installed in a single directory then symbolically linked to directories in your PATH. There is an easy script to uninstall, and it works.

    I do this all the time. You just ssh -X <your_linux_box_ip> and then firefox or whatever.
    Help stamp out MBR partition tables. Use GPT instead!

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •