[Fuego] Unable to connect gerrit server from within docker container via Gerrit Trigger plugin
Dhinakar Kalyanasundaram <[email protected]>
| Newsgroups | dev.linux.lists.fuego |
|---|---|
| Message-ID | <20191031142901epcms5p3500471e569925b5908f92ad883687cdc@epcms5p3> |
Dear Fuego Users, I am trying to connect to gerrit server by installing and configuring the 'gerrit plugin' but I get 'Permission denied (publickey) issue. The issue is only from within the docker, from my Linux host I am able to connect. Then I tried from within the container, as jenkins user, as shown below. jenkins@linux-2030047407:~$ ssh -p 29418 [email protected] Permission denied (publickey). I have added the public key of Jenkins user '/var/lib/jenkins/.ssh/id_rsa.pub' in my gerrit server. OpenSSHServer was not installed by default in the container (Debian stretch), so I installed it and also configured '/etc/ssh/sshd_config' file. (Set PermitRootLogin, PubkeyAuthentication PasswordAuthentication to yes). But still I am not able to connect to 'gerrit server' from within docker container. Any tips to solve this issue will be highly appreciated. Thanks in advance. Note: FYI, In the Jenkins->Gerrit Trigger plugin configuration, under 'Gerrit Connection Settting' I get the following error, when I try 'Test Connection'. Connection error : com.jcraft.jsch.JSchException: Auth fail Regards, Dhinakar
201602111742151_N3WZA6X7.png
(image/png, 32.7 KB) - not displayed