Correct Path for Git Remote Add from Amazon EC2 Instance to OSX Client Machine

Posted by filmnut on Stack Overflow See other posts from Stack Overflow or by filmnut
Published on 2014-05-21T20:57:38Z Indexed on 2014/05/28 21:28 UTC
Read the original article Hit count: 164

Filed under:
|

I'm trying to do a git remote add from a repository that sits on a remote Amazon AMI back to a cloned copy of the SAME repository that is sitting on my local OSX machine.

I'm confused about what file path to use. I assume it's something like:

git remote add my_clone <OSX_User_Name>@<OSX_HOST_NAME>:<PATH_TO_CLONED_REPO>

I obviously know what my <OSX_User_Name> is, and I can figure out my <PATH_TO_CLONED_REPO>, but I have no idea how to determine a <OSX_HOST_NAME> that would actually work.

  • Can I just put in my external IP address, followed by my machine's internal IP address? (Note that I'm working behind a router.)
  • Is ssh:// the correct protocol?
  • Do I need to set up ssh access from the Amazon EC2 machine to the local OSX machine?

© Stack Overflow or respective owner

Related posts about git

Related posts about amazon-ec2