Search code examples
githubputtyuploadingcodebase

How can I upload to GitHub through Putty?


I'm very new to GitHub and I'm trying to figure out how I can upload to GitHub through Putty. I am using Windows 8 and am using a Linux environment through Putty. I was following this guide: https://help.github.com/articles/generating-ssh-keys#platform-windows and it worked until (step 3) where it wanted me to copy the contents of the file to clipboard. I am assuming this is not possible because my Linux environment does not have clipboard.

The issue is mostly due to the fact that my code is on the linux envirnonment and I am not sure how I can upload it to GitHub. Does anyone have any advice as to how I can do this?


Solution

  • Cat the file out, and copy the contents from the putty session (just highlighting the text in putty will copy it to your clipboard):

    cat ~/.ssh/id_rsa.pub
    

    Make sure to remove any new lines inserted caused by putty wrapping the text.