ठीक है, मैंने इस विषय पर कई बार ठोकर खाई है, लेकिन यह पहली बार है कि नियमित समाधानों में से कोई भी काम नहीं करता है।गिटलैब एसएसएच कुंजी ने काम करना बंद कर दिया
मेरे पास एक CentOS 6.4 सर्वर GitLab चल रहा है। यह 20+ उपयोगकर्ताओं और 60+ परियोजनाओं के साथ बहुत अच्छा काम कर रहा है, लेकिन लगभग 5 घंटे पहले, मेरा मुख्य स्टेजिंग सर्वर मुख्य प्रमाणीकरण का उपयोग करके पहली बार गिटलैब मशीन से कनेक्ट करने में असमर्थ था और यह पासवर्ड के लिए संकेत दिया गया था। मैंने आरएसए कुंजी को पुन: उत्पन्न किया और इसे अपनी तैनाती कुंजी में जोड़ा, लेकिन यह भी असफल रहा।
अगला, मैंने स्टेजिंग सर्वर पर एक नया उपयोगकर्ता बनाने की कोशिश की, इसके लिए एक कुंजी बनाएं, और इसे गिटलैब में जोड़ें लेकिन यह अभी भी विफल हो गया है।
अनुमतियां:
drwxr-x--- 22 root root 4.0K Oct 28 13:20 root
जड़ के अंदर:
drwx------ 2 root root 4096 Oct 28 11:49 .ssh
.ssh के अंदर:
-rw------- 1 root root 227 Oct 28 11:48 authorized_keys
-rw------- 1 root root 1675 Oct 28 13:09 id_rsa
-rw------- 1 root root 398 Oct 28 13:09 id_rsa.pub
-rw-r--r-- 1 root root 413 Oct 28 11:49 known_hosts
जब मैं Git मशीन से कनेक्ट करने का प्रयास करें:
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to git.mygitlab.com [212.29.122.24] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: loaded 3 keys
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'git.mygitlab.com' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with- mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Next authentication method: publickey
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with- mic,password
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: password
[email protected]'s password:
जब मैं वेब इंटरफेस के माध्यम से एसएसएच कुंजी जोड़ता हूं, तो उन्हें .ssh/authorized_keys
में जोड़ा नहीं जाता है।
मैं वास्तव में आगे क्या करने की कोशिश करना नहीं जानते :(
क्या आप अपनी सार्वजनिक कुंजी 'git.mygitlab.com: ~ git/.ssh/valid_keys' में देखते हैं? – VonC
वास्तव में नहीं! मेरे पास gitlab सर्वर पर अधिकृत कुंजी फ़ाइलों में 49 कुंजी हैं, जब मैं अतिरिक्त कुंजी जोड़ता हूं तो वे – SlipY
दिखाई नहीं देंगे, तो यह वही समस्या है। क्या गिटलैब में कोई लॉग है जो एक सुराग छोड़ देगा? – VonC