• Trang chủ
  • App
  • Khóa học
  • Bài viết
  • Giới thiệu
  • Liên hệ
  • Github
  • Shop Cún yêu
    • Login
      • GET STARTED
    Nền tảng Kiến thứcNền tảng Kiến thức
    • Trang chủ
    • App
    • Khóa học
    • Bài viết
    • Giới thiệu
    • Liên hệ
    • Github
    • Shop Cún yêu
    • Login
      • GET STARTED

      Chưa phân loại

      • Home
      • Blog
      • Chưa phân loại
      • Fix lỗi ‘Permission Denied (publickey)’ error when I push!”

      Fix lỗi ‘Permission Denied (publickey)’ error when I push!”

      • Posted by Dương Nguyễn Phú Cường
      • Categories Chưa phân loại
      • Date 08/03/2022

      'Permission Denied (publickey)' error when I push!"

      This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:

      1. Open git bash (Use the Windows search. To find it, type "git bash") or the Mac Terminal. Pro Tip: You can use any *nix based command prompt (but not the default Windows Command Prompt!)
      2. Type cd ~/.ssh. This will take you to the root directory for Git (Likely C:\Users\[YOUR-USER-NAME]\.ssh\ on Windows)
      3. Within the .ssh folder, there should be these two files: id_rsa and id_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type ls to see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named id_rsa and id_rsa.pub in order for Git, GitHub, and BitBucket to recognize them by default.
      4. To create the SSH keys, type ssh-keygen -t rsa -C "your_email@example.com". This will create both id_rsa and id_rsa.pub files.
      5. Now, go and open id_rsa.pub in your favorite text editor (you can do this via Windows Explorer or the OSX Finder if you like, typing open . will open the folder).
      6. Copy the contents--exactly as it appears, with no extra spaces or lines--of id_rsa.pub and paste it into GitHub and/or BitBucket under the Account Settings > SSH Keys. NOTE: I like to give the SSH key a descriptive name, usually with the name of the workstation I'm on along with the date.
      7. Now that you've added your public key to Github and/or BitBucket, try to git push again and see if it works. It should!

       

      Nguồn:

      https://gist.github.com/adamjohnson/5682757
      • Share:
      author avatar
      Dương Nguyễn Phú Cường
      Code with my love

      Previous post

      Cho thuê Vỉa hè Cần Thơ đường Xô viết Nghệ Tỉnh
      08/03/2022

      Next post

      Thêm quyền SSH vào Visual Studio Code
      09/03/2022

      You may also like

      Bảo vệ: Văn phòng Điện tử
      31 Tháng Mười Hai, 2021

      Không có trích dẫn vì bài này được bảo vệ.

      Nên thay thế Let’s Encrypt bằng SSLForFree
      11 Tháng Mười Một, 2021

      Chứng chỉ gốc DST Root CA X3 của Let’s Encrypt hết hạn và họ đã thay thế bằng ISRG Root X1. Chính vì nguyên nhân này mà các thiết bị sử dụng hệ điều hành cũ không thể truy cập …

      Sách số Tử vi cha truyền
      13 Tháng Chín, 2021

      Diễn cầm tam thế – Căn duyên tiền định Ngọc hạp chánh tông

      Search

      Chuyên mục

      • Blog
      • Business
      • Chưa phân loại
      • Covid19
      • Design / Branding
      • Đăng ký Khóa học
      • Facebook
      • Giải trí
      • Hướng dẫn
      • Kho sách
      • Lập trình
      • Lập trình Web
      • Laravel
      • Món ăn ngon
      • Nhà đất
      • Phần mềm Quay số
      • Phong cách thiết kế Web
      • Photoshop
      • Tài liệu hướng dẫn
      • Tạo Khóa học
      • Thanh toán Online
      • Thao tác web Nền Tảng thiết kế
      • Tin tức Công nghệ Thông tin
      • Triển khai web
      • Tuyển dụng
      • Whitehat Hacker
      • Wordpress

      Sign up for Newsletter

      Be one step ahead with our latest deals, offers and discount for Education themes

      Liên hệ

      • admin@nentang.vn
      • (+84) 915659223
      • 130 Xô Viết Nghệ Tỉnh, Quận Ninh Kiều, TP Cần Thơ

      Company

      • About Us
      • Blog
      • Contact
      • Become a Teacher

      Useful Links

      • Courses
      • Events
      • Gallery
      • FAQs

      Support

      • Documentation
      • Forums
      • Language Packs
      • Release Status

      Mobile

      Nền tảng trên Đi động

      • Home
      • Courses

        About Courses

        • Courses Archive
        • Become an Instructor
        • Instructor Profile

        Lập trình Java căn bản

        Miễn phí
        Read More
      • Features
        • Gallery
        • Portfolio
        • About Us
        • FAQs
      • Events
      • Blog
      • Contact
      • Shop

      Bản quyền bởi © NenTang.vn

      • Privacy
      • Terms
      • Sitemap
      No apps configured. Please contact your administrator.

      Login with your site account

      No apps configured. Please contact your administrator.

      Lost your password?