Reputation:
I only have access to a RedHat box through ssh commands that I can connect to it. Now I want to copy my code from GitHub to that box.
In the browser view of my github I see two things: one for HTTP
and one for SSH
.
Does that mean I should use the SSH one? How?
I have used the HTTP one before by saying git clone thatHTTPAddrees
Upvotes: 0
Views: 378
Reputation: 1697
If you want to clone over ssh first you will need to set up your ssh key with ssh-keygen
A full walk through for generating keys and cloning over ssh can be found at https://help.github.com/articles/generating-ssh-keys
Once you do that you can use git clone [email protected]/<repo path>
Upvotes: 1