The most efficient way is using Pageant because it will let you write the passphrase only once at the beginning of the session instead of every push. On the GitHub website, go to 'Account settings', 'SSH and GPG keys', click 'New SSH key', and paste the key.In Git Bash, type 'cat ~/.ssh/id_rsa.pub', select the result, and copy it to the clipboard.If it lists the files in your home directory on the Git server, and then you're done!įor GitHub, you don't have shell access to their server, but you can upload the key using their website, so for the bit 'now copy to your server', do: That's it! You're done! From Git Bash, do the following to test: ssh ls Now ssh into the destination server, then do mkdir -p ~/.ssh That's the bit on your own computer done.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |