NOAA-CEFI-Regional-Ocean-Modeling / ocean_BGC

3 stars 4 forks source link

Configuring SSH for Repository Cloning #52

Closed feida6996 closed 2 months ago

feida6996 commented 2 months ago

After following Yi-Cheng's tutorial on cloning a repository (step 1.1), I realized that certain configuration settings were necessary in the SSH configuration file on Gaea if I want to use SSH approach rather than HTTP. This might be specific to my setup, but I thought I'd share in case others encounter similar issues.

You may need to add the following to /ncrc/home1/XX.XX/.ssh/config

_# START GitHub SSH key Host github.com HostName github.com User git IdentityFile ~/.ssh/id_rsagit # END GitHub SSH key

Note: Because I already have SSH keys created previously (id_rsa), id_rsa_git is the custom-named SSH key created from step 0.0 of the tutorial. You may change the name of the key based on your preference.

yichengt900 commented 2 months ago

@feida6996, thank you for the additions. I will include this in our tutorial.

yichengt900 commented 2 months ago

Have added this tips to our wiki page. Close this issue for now.