2

I would like to SSH into my Mac from the internet. Here are some details:

  • Public IP: 64.xx.xx.xx
  • Mac’s Internal IP: 10.0.0.10

I have set up port forwarding in my Comcast Arris TG862 gateway as the following

  • service name: mac
  • server IP: 10.0.0.10
  • start port: 8031
  • end port: 8031

Remote Login is also enabled in the Mac’s Sharing prefs. And says the following:

To Log into this computer remotely, type "ssh [email protected]"

Which works when using another device on the LAN, but does not work when I do:

ssh -p 8031 [email protected]

On a device connecting from an external IP.

Any advice would be helpful!

6
  • ssh usually runs on port 22, why are you forwarding to 8031?
    – bertieb
    Commented Aug 26, 2015 at 16:58
  • doing 'ssh user @64.xx.xx.xx' or ssh -p 22 [email protected]' does not work when connecting to the mac from external IP. I have set up ssh port forwarding for a number of guest VMs hosted on the mac using a combination of router port forwarding and additions to VM's config files and doing 'ssh -p <VMportnumber> [email protected]' has worked fine from external IP however I have not been able to get this working when attempting to connect to the host itself
    – gosaultech
    Commented Aug 26, 2015 at 17:06
  • That is the kind of pertinent information that should be edited into the question; as it may affect things and it's not immediately apparent why you are forwarding to 8031.
    – bertieb
    Commented Aug 26, 2015 at 17:26
  • Have you configred ssh on your Mac to listen on port 8031?
    – bertieb
    Commented Aug 26, 2015 at 17:27
  • issue resolved: i forwarded the preferred port in the router, enabled upnp and zero config downloaded portmaps for mac and routed local ssh to the public port. thank you for responding!
    – gosaultech
    Commented Aug 26, 2015 at 18:04

1 Answer 1

1

Issue Resolved: I forwarded/targeted the preferred port in the router, enabled upnp and zero config in theComcast Arris TG862 gateway, downloaded port maps for mac and routed local SSH to the public port. Thank you for responding!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .