Therefore, I tried to find the SSH host key on the 'current configuration' page in the manual. However, I found that the key does not match the key that SSH shows me on the first connect. To demonstrate this, here you can find the respective 'instanceconfiguration' page for gitlab.com. The RSA-SHA256 fingerprint is said to be. To add the SSH public key to GitLab, see Adding an SSH key to your GitLab account. Note: Once you add a key, you cannot edit it. If it didn’t paste properly, it will not work, and you will need to remove the key from GitLab and try adding it again. Gitlab提交ssh public key时,报这个错: Key is invalid Fingerprint cannot be generated 原因1: key里面的数据有换行,比如:直接从Git Bash终端粘贴出来的,可能会拷贝到换行符。 解决: 从linux系统里面下载到windows上,用记事本打开,去掉记事本的“自动换行”,在拷贝添加到gitlab上。.
Gitlab Ssh Key Fingerprint Cannot Be Generated Number
Open
Report abuseNew issue
Unable to authenticate with SSH using a public key loaded via the API. Same key loaded via the web UI authenticates successfully.
Description of the problem
I have an SSH public key that I am using to authenticate to gitlab.Here is the original input key
Public Key:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDDdlShx5jfa6+nijmAWpBpx3U9sOuyHIsR6Y1V0C1kO6ugAT0GL1fG3j4NAN06V1YvzDQ1aRy9YKEjH9AGZoipr5mE0J+qjidc/gH11Rt3D68d/io3me3CHrBQUzAaOp3p960F+6tzsNDY0LfZLF+e5Uo5ZZHjDNs/6u4BTwPNuOAovCS3rP08nEfSQqJ54givDb+5ivtd58BHVmMrYtezogVawlw9X9h2o5HUTneZtKzmbQlbt4LAExquNMW3ycN+KIDuUwLoVU5GDreIFg+aOpklLKX+WvmjaBDpUdPmn7BNwLLX7qADqu6m/37z83AeCoGf7e0s12eNut2g62VTIs9UYMRIefWnoShLYiChGdhL9g6q5jEfOKe3JJrN8i30dainODtwlhM7t0tjSLoxcRXFZkyg29PrJRnArzDRMSR3Tqh5S3QhabWOHdCBQt4xyaeh6Npr9R96PzXIbALdlP74r8i8AjbLOqTldxgXkmG4mVGmVf8O6cHW2XsBbchXy158BUWP4TTSMSVWMvS3TGOUV1Li9uhOz2CH2kiyosEmT4E2UER9n4X6g8sAwyxIrSDAcreswKrpgK8O11h+uMbI3rXnyhfOKuRB0P/6ZSijbuTxOTklAixF47q9cnoAEPnL9OlW+EpHIeMceD9B8zSQzcNrY+DN1k+ftcmVtw [email protected]
The MD5 fingerprint for this key as generated from my side (using ssh-keygen -E md5 -lf )is 4096 MD5:33:ef:f1:9f:c9:16:24:55:bf:6b:38:da:ea:1f:44:7a [email protected] (RSA)
When I upload this key to Gitlab via the web ui, I can see that the key has been uploaded with this same fingerprint: you can see this key at https://gitlab.com/profile/keys/1625745. I can successfully authenticate to gitlab using this version of the public key and my private key.
Now When I upload this same key using the same input file to Gitlab via the API (the code snippet I use as part of my script is below)
I get back a key with slightly different contents and a different fingerprint than the key I sent in. You can see thiskey at https://gitlab.com/profile/keys/1625825This is the response from the API call.{'id':1625825,'title':'[email protected]','key':'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDDdlShx5jfa6 nijmAWpBpx3U9sOuyHIsR6Y1V0C1kO6ugAT0GL1fG3j4NAN06V1YvzDQ1aRy9YKEjH9AGZoipr5mE0J qjidc/gH11Rt3D68d/io3me3CHrBQUzAaOp3p960F 6tzsNDY0LfZLF e5Uo5ZZHjDNs/6u4BTwPNuOAovCS3rP08nEfSQqJ54givDb 5ivtd58BHVmMrYtezogVawlw9X9h2o5HUTneZtKzmbQlbt4LAExquNMW3ycN KIDuUwLoVU5GDreIFg aOpklLKX WvmjaBDpUdPmn7BNwLLX7qADqu6m/37z83AeCoGf7e0s12eNut2g62VTIs9UYMRIefWnoShLYiChGdhL9g6q5jEfOKe3JJrN8i30dainODtwlhM7t0tjSLoxcRXFZkyg29PrJRnArzDRMSR3Tqh5S3QhabWOHdCBQt4xyaeh6Npr9R96PzXIbALdlP74r8i8AjbLOqTldxgXkmG4mVGmVf8O6cHW2XsBbchXy158BUWP4TTSMSVWMvS3TGOUV1Li9uhOz2CH2kiyosEmT4E2UER9n4X6g8sAwyxIrSDAcreswKrpgK8O11h uMbI3rXnyhfOKuRB0P/6ZSijbuTxOTklAixF47q9cnoAEPnL9OlW EpHIeMceD9B8zSQzcNrY DN1k ftcmVtw [email protected]','created_at':'2017-12-22T15:41:40.320Z','can_push':false}If you look at the key returned by the call,The contents are different from the input in that the '+' character in the input key has been replaced with a space character.This gives a different MD5 hash for the key, and in fact it seems like the uploaded key is no longer a valid public key sinceI cannot actually use ssh-keygen to create a finger print for this returned key.
So using this key SSH authentication fails, since the server has no public key matching the fingerprint I send over from the client side.
Gitlab Ssh Key Fingerprint Cannot Be Generated Number
I can work around this by manually uploading the key of course, but it seems like API for adding a key is broken if you cannot authenticate using an uploaded key.
The one place for your designs
Gitlab Ssh Key Fingerprint Cannot Be Generated Home
To enable design management, you'll need to meet the requirements. If you need help, reach out to our support team for assistance.