본문 바로가기
my_lesson/_GIT

GIT - GITHUB Create SSH key

by boolean 2016. 5. 12.
728x90

GITHUB - Create SSH key

  1. Copy the SSH key to your clipboard.

    If your SSH key file has a different name than the example code, modify the filename to match your current setup. When copying your key, don't add any newlines or whitespace.

    $ sudo apt-get install xclip
    # Downloads and installs xclip. If you don't have `apt-get`, you might need to use another installer (like `yum`)
    
    $ xclip -sel clip < ~/.ssh/id_rsa.pub
    # Copies the contents of the id_rsa.pub file to your clipboard
    

    Tip: If xclip isn't working, you can locate the hidden .ssh folder, open the file in your favorite text editor, and copy it to your clipboard.

  2. Settings icon in the user barIn the top right corner of any page, click your profile photo, then click Settings.

  3. Authentication keysIn the user settings sidebar, click SSH and GPG keys.

  4. SSH Key buttonClick New SSH key.

  5. In the "Title" field, add a descriptive label for the new key. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air".
  6. The key fieldPaste your key into the "Key" field.
  7. The Add key buttonClick Add SSH key.
  8. Confirm the action by entering your GitHub password.

댓글