Change my public key in my Gerrit company web, then repo fail because "Permission denied (publickey)", but useing ssh -t name@host is OK

192 views
Skip to first unread message

涛 陈

unread,
Jul 11, 2011, 4:01:29 AM7/11/11
to Repo and Gerrit Discussion
hi guys,
I updated my rsa public key in my company Gerrit web, and test it
using the command
"ssh -t name@host" and it's Ok
////////////////////////////////////////////////////////////////////////////////////////
Welcome to Gerrit Code Review ****

Hi XX, you have successfully connected over SSH.

Unfortunately, interactive shells are disabled.
To clone a hosted Git repository, use:

git clone ssh://XX@XX/REPOSITORY_NAME.git
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

but I use repo init , it shows like that
//////////////////////////////////////////////////////////
Getting repo ...
from ssh://..../tools/community/repo
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
//////////////////////////////////////////////////////////

who can you tell me why this , and how to solve it .

Magnus Bäck

unread,
Jul 11, 2011, 12:18:46 PM7/11/11
to Repo and Gerrit Discussion

Repo might not be trying to connect to the expected host and port combo
using the correct username. Use "repo --trace init ssh://..." to get
more debugging output, including the SSH connection details.

--
Magnus Bäck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson

Reply all
Reply to author
Forward
0 new messages