[ 
https://issues.apache.org/jira/browse/SSHD-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17555132#comment-17555132
 ] 

Thomas Wolf commented on SSHD-1270:
-----------------------------------

So, a successful authentication shows "debug2: key: /home/gaowenjun/.ssh/id_rsa 
(0x55ff7aab1f50)", i.e., the key is not used via ssh-agent.

An unsuccessful authentication used the agent.

And when you relaunch the agent and re-add the key, it suddenly also works with 
the agent? No idea why that would happen. Check what agent is running when it 
doesn't work, and what agent when it does. Perhaps it's different binaries? Or 
different libraries? After all, if you start it from the shell, LD_LIBRARY_PATH 
or PATH or other settings might be different. And double-check that after the 
re-launch of the agent it is actually used.

The following might perhaps also be relevant: 
https://bugzilla.mindrot.org/show_bug.cgi?id=2568

In any case this doesn't look like a problem in Gerrit or in Apache MINA sshd 
but in OpenSSH 7.2 or in the ssh-agent you're using.

> MINA-SSHD 2.8.0 break Ubuntu 16.04 users connection
> ---------------------------------------------------
>
>                 Key: SSHD-1270
>                 URL: https://issues.apache.org/jira/browse/SSHD-1270
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 2.8.0
>            Reporter: CY
>            Priority: Major
>         Attachments: 1, image-2022-06-16-23-02-11-970.png
>
>
> steps to reproduce:
>  1.upgrade Gerrit to 3.6 (which use 2.8.0 SSHD
>  2.Ubuntu 16.04 user try to connect Gerrit via ssh
>  `ssh -p 29418 usern...@gerrit.mioffice.cn gerrit`
>  3.Got "Permission denied (publickey)."
>  4.execute eval "$(ssh-agent -s) && ssh-add"
>  5.`ssh -p 29418 usern...@gerrit.mioffice.cn gerrit` now can connect to 
> Gerrit correctly.
>  6.Reboot the PC, then cannot connect again, and need to execute "eval 
> "$(ssh-agent -s) && ssh-add"" again.
>  
> Here is my client log with `ssh -vvv`
> There is also a discussion on Gerrit community and there is server side log 
> on it
> https://bugs.chromium.org/p/gerrit/issues/detail?id=15987#c_ts1655281861



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to