Issue 1597: gerrit cannot recognize public key, il93lnxgit01 can recognize
Status:  Invalid
Owner: ----
Closed:  Oct 2012
Reported by dmi...@motorola.com, Oct 4, 2012
cdk041@il93lnxdroid07:/localrepo/cdk041/m/main-jb-qc/device/moto/vanquish/vanquish_vzw/overlay/packages$ ssh -T gerrit.pcs.mot.com
Permission denied (publickey).


cdk041@il93lnxdroid07:/localrepo/cdk041/m/main-jb-qc/device/moto/vanquish/vanquish_vzw/overlay/packages$ ssh -T il93lnxgit01.pcs.mot.com

This computer resource is the property of Motorola. Authorized persons
may use Motorola computer resources only for approved purposes. Misuse
or misappropriation of company networks and systems is prohibited.
 


************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version:

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


Please provide any additional information below.
Oct 4, 2012
Project Member #1 edwin.ke...@gmail.com
Make sure that you have properly configured your public SSH key in Gerrit and that really the matching private key and username are used to connect to Gerrit via SSH. Have a look at [1] to find out how you can test the SSH connection to Gerrit.

[1] https://gerrit-review.googlesource.com/Documentation/error-permission-denied.html
Oct 4, 2012
#2 dmi...@motorola.com
Please consider that SSH pair is working for machine
il93lnxgit01.pcs.mot.com and not working for gerrit.pcs.mot.com, while ssh
keys are inserted in one place at gerrit system
Oct 4, 2012
Project Member #3 edwin.ke...@gmail.com
I don't know about these machine names, but you may have a local SSH configuration for the one host name that makes the connection work, while such a configuration is missing for the other hostname. To investigate the problem, you should try out the test SSH connection command as it is described in the documentation. If it fails, the trace should give you hints about the cause.
Oct 5, 2012
#4 icee...@googlemail.com
Unless ypu have set up the port in .ssh/config, you are not connecting to gerrit, but to the underlying OS. 

Try ssh -p 29418 ....
Oct 5, 2012
#5 dmi...@motorola.com
Hi,

it is a Great Hint regarding port in .ssh.config. yes, after removing old
used configuration it is working.
Oct 5, 2012
Project Member #6 edwin.ke...@gmail.com
(No comment was entered for this change.)
Status: Invalid