Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] clone repo using git+ssh://
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3686

PostPosted: Sun Dec 03, 2017 12:15 pm    Post subject: [SOLVED] clone repo using git+ssh:// Reply with quote

Following https://wiki.gentoo.org/wiki/Github_Pull_Requests#Step_0:_User_configures_the_local_repository I am getting an error:
Quote:
git clone -o upstream git+ssh://git@git.gentoo.org/repo/gentoo.git

Cloning into 'gentoo'...
The authenticity of host 'git.gentoo.org (148.251.78.52)' can't be established.
ECDSA key fingerprint is SHA256:lDtZUg9Kg55tWetA0Yf+eWAZdq/SvKPIgs65EPQ98ao.
Are you sure you want to continue connecting (yes/no)? y

Please type 'yes' or 'no': yes
Warning: Permanently added 'git.gentoo.org,148.251.78.52' (ECDSA) to the list of known hosts.
Authentication failed.
fatal: Could not read from remote repository.

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


Code:
$ ssh -vT git@git.gentoo.org
OpenSSH_7.5p1-hpn14v12, OpenSSL 1.0.2m  2 Nov 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to git.gentoo.org [148.251.78.52] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
...

Could someone please tell me what's missing?


Last edited by charles17 on Mon Dec 04, 2017 6:52 am; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sun Dec 03, 2017 5:22 pm    Post subject: Reply with quote

Only Gentoo developers get SSH access to git.gentoo.org, whoever wrote the page must not know that. Any of the other URLs at the bottom of https://gitweb.gentoo.org/repo/gentoo.git/ should work.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23497

PostPosted: Sun Dec 03, 2017 5:35 pm    Post subject: Reply with quote

Ant P.'s explanation seems most likely. The immediate reason is that your ssh client is not offering an approved ssh key for Linux user git to log in on git.gentoo.org. If you aren't a Gentoo developer, that's normal and Ant P.'s advice is the best way to proceed. On the off chance that you are supposed to have SSH access to git.gentoo.org, then either the person who was supposed to whitelist your key did not do so, or your ssh client is not configured to offer the key.

Annotating Wiki history isn't nearly as nice as using git blame on regular text, but it looks like the incorrect step #0 was added by JStein on 30 November 2017.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3686

PostPosted: Mon Dec 04, 2017 6:53 am    Post subject: Reply with quote

Thanks Ant P. and Hu for clarification.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum