Skip to main content

How to fix Can't Push to gitlab because You Move Project to Another Computer

How to fix Can't Push to gitlab because You Move Project to Another Computer

The authenticity of host 'gitlab.com (0.0.0.0)' can't be established.
ECDSA key fingerprint is SHA blablabla
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gitlab.com,0.0.0.0' (ECDSA) to the list of known hosts.
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

when you try to move the private project from another computer you will necessary upload the new public key of your new computer ssh so, let's configure the ssh.

first certainly, you have installed ssh in your new computer example I using Linux so the ssh in default when you install the computer. check ssh version via terminal with "ssh -V"

second, type  on your terminal "ssh-keygen -t rsa -b 2048 -C "youremail@email.com"
and then enter you will get some question but nope you just enter enter enter wkwkwk until close the dialog and get the identification and the public key

third, you need a xclip if you not yet have installed it you should install with "sudo apt-get install xclip"
after installation you can try to type "xclip -sel clip < ~/.ssh/id_ed25519.pub"

last, let's go to gitlab.com and then login go to your icon -> settings -> ssh and then you paste the public key of ssh who saved on your local when generated ssh key above regularly in ~/.ssh/id_ed25519.pub open it and select all the key and then paste to the form in your gitlab. after that enjoy now you can push the code to the gitlab.



Comments

Popular posts from this blog

Ponsel Xiaomi Terbaik di Tahun 2018

Ponsel Xiaomi Terbaik di 2018 Pabrikan yang mungkin jarang Anda dengar menjadikan beberapa perangkat terbaik yang tersedia saat ini. Xiaomi adalah produsen ponsel pintar yang tumbuh di hari demi hari, meski memiliki kehadiran terbatas di luar Asia. Perusahaan ini kini menjadi vendor smartphone terbesar kelima secara global, pencapaian yang cukup besar mengingat bagaimana merek tersebut mulai menjual ponsel di luar China hanya tiga tahun lalu. Yang mengherankan, tentu saja, dan tampaknya Xiaomi diatur untuk bekerja sama dengan Apple dan Samsung di pasar smartphone. Perusahaan ini melampaui Samsung untuk menjadi merek smartphone terbesar di India akhir tahun lalu, dan secara perlahan membuat jalannya ke pasar Eropa. Meskipun begitu banyak orang yang mungkin mendengar nama itu, telepon-telepon itu masih relatif asing bagi banyak orang di Barat. Xiaomi memiliki reputasi untuk membangun perangkat yang bernilai sangat baik tanpa memotong sudut. Jika Anda tertarik untuk mengambil pons...

Cara Install OpenGL

Apa itu OpenGL? menurut wikipedia OpenGL ( Open G raphics L ibrary) [3] adalah spesifikasi standar yang mendefinisikan sebuah lintas-bahasa, lintas platform API untuk mengembangkan aplikasi yang menghasilkan grafis komputer 2D maupun 3D . Antarmuka terdiri dari lebih dari 250 panggilan fungsi yang berbeda yang dapat digunakan untuk menggambar tiga dimensi yang adegan-adegan kompleks dari bentuk-bentuk primitif sederhana. OpenGL dikembangkan oleh Silicon Graphics Inc (SGI) pada tahun 1992 [2] dan secara luas digunakan dalam CAD , realitas maya , visualisasi ilmiah, visualisasi informasi, dan simulasi penerbangan . Hal ini juga digunakan dalam video game, di mana bersaing dengan Direct3D on Microsoft Windows platform (lihat vs OpenGL Direct3D). OpenGL dikelola oleh sebuah teknologi konsorsium nirlaba yaitu Khronos Group. oke jadi opengl adalah sebuah tool yang digunakan pada grafis seperti CAD dan lainnya, dan disini saya bahas cara untuk install opengl yang di imp...