Results 1 to 4 of 4
  1. #1

    gotenks05's Avatar
    Member Since
    Oct 23, 2006
    Posts
    64
    SSH connection to Mac from PC
    awhile back I discovered that I could access my Mac from a PC using VNC and SSH. I've tried out SSH and the connection worked great, because I tested it with my Windows XP virtual Machine. However, I do not know if any of the computers outside my home will be able to access it. What can I do to ensure that I can access my Mac from school/work computers? I've already got PuTTy for Windows, which did not require installation (like most Windows program do require installation), so I plan to run it from my USB Flash drive (memory stick). Also, I've seen an SSH connection from Mac to a Linux machine bring up the GUI of the Linux computer, could I expect the same thing from an SSH connection to my Mac from a Windows PC?

  2. #2


    Member Since
    Jun 15, 2007
    Location
    New York, NY
    Posts
    270
    In my experience, yes. It should work. I used this technique very rarely as a way to transfer notes. I've never seen an SSH connection from a Mac to a Linux which is the only reason I'm a bit skeptical that you'll see the same results in a Mac-to-PC.

  3. #3

    bmcgonag's Avatar
    Member Since
    Apr 11, 2007
    Location
    New Mexico, USA
    Posts
    361
    Specs:
    15" MBP 2.0 GHz, Core Duo, 2 GB Ram
    SSH is SSH, as long as you have the appropriate software installed, and the server running, you shouldn't have any trouble.

    As far as bringing up the GUI on the mac from linux in SSH, it was probably using X, the linux graphic environment, which works on mac because it is based around unix.

    Not gonna work in Windows. Sorry. You'll have to use the VNC server on the mac, and a VNC client on windows, (Real VNC, Tight VNC come to mind immediately as free vnc viewers for windows, and Chicken of the VNC is a viewer for the mac).

    The other thing to consider is if you are using not only a modem at your home, but a router as well, you will need to do some port forwarding in order to tell your router which machine you are trying to reach when you attempt to connect from outside your own network.

    so, google "What's my ip?", and click the first link...don't use the ip in the link text, but actually click the link and see what your public IP is.

    That's the IP you'll have to use to get to your home modem and router through SSH, Browser, VNC, whatever. Now find out what the private IP assigned to your home computer is, and log in to your router, and setup port forwarding for port 5900 (VNC Server) to your desired computer's private ip inside your network. do the same for port 22 (SSH) and 80 and 8080 (Website server).

    Now if you type in the public ip from outside your home you should be able to raach the desired machine.

    Best,

    Brian

  4. #4

    gotenks05's Avatar
    Member Since
    Oct 23, 2006
    Posts
    64
    Quote Originally Posted by bmcgonag View Post
    SSH is SSH, as long as you have the appropriate software installed, and the server running, you shouldn't have any trouble.

    As far as bringing up the GUI on the mac from linux in SSH, it was probably using X, the linux graphic environment, which works on mac because it is based around unix.

    Not gonna work in Windows. Sorry. You'll have to use the VNC server on the mac, and a VNC client on windows, (Real VNC, Tight VNC come to mind immediately as free vnc viewers for windows, and Chicken of the VNC is a viewer for the mac).

    The other thing to consider is if you are using not only a modem at your home, but a router as well, you will need to do some port forwarding in order to tell your router which machine you are trying to reach when you attempt to connect from outside your own network.

    so, google "What's my ip?", and click the first link...don't use the ip in the link text, but actually click the link and see what your public IP is.

    That's the IP you'll have to use to get to your home modem and router through SSH, Browser, VNC, whatever. Now find out what the private IP assigned to your home computer is, and log in to your router, and setup port forwarding for port 5900 (VNC Server) to your desired computer's private ip inside your network. do the same for port 22 (SSH) and 80 and 8080 (Website server).

    Now if you type in the public ip from outside your home you should be able to raach the desired machine.

    Best,

    Brian
    I finally accessed my router, but I can't seem to figure out how to do port forwarding. I know that I can sign up at dyndns.org. I also got my IP address, thanks to IPchicken. I have a linksys router, but don't know the model. Also, I just went up to Utah and a friend told me about a program called Mac DNA or Whatever its name was, which was supposed to let me connect to a Mac from an outside computer (just like VNC). He described as a Linux program that should work on Mac, Linux (duh), and Windows. If anyone has heard of such a program, can they tell me what it is. The router is all I have, so I am using my Mac's airport and the router.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 01-15-2014, 05:53 AM
  2. SSH connection time out
    By raghavendrac in forum OS X - Operating System
    Replies: 1
    Last Post: 12-22-2013, 03:57 PM
  3. Problem with passwordless ssh "Connection closed by ::1"
    By rpmgatech in forum OS X - Operating System
    Replies: 2
    Last Post: 09-29-2011, 05:37 PM
  4. Help with SSH connection
    By CL33Zero in forum iPhone Hardware and Accessories
    Replies: 0
    Last Post: 04-09-2008, 10:27 PM
  5. SSH via Putty to Mac from PC - Connection Refused
    By nevets88 in forum OS X - Operating System
    Replies: 3
    Last Post: 01-05-2008, 07:28 AM

Posting Permissions

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