Correct Path for Git Remote Add from Amazon EC2 Instance to OSX Client Machine
- by filmnut
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?