We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01ea911 commit fbdf5bdCopy full SHA for fbdf5bd
src/transports/ssh.c
@@ -518,6 +518,7 @@ static int _git_ssh_setup_conn(
518
{
519
git_net_url urldata = GIT_NET_URL_INIT;
520
int auth_methods, error = 0;
521
+ int sub_error;
522
size_t i;
523
ssh_stream *s;
524
git_cred *cred = NULL;
@@ -638,6 +639,15 @@ static int _git_ssh_setup_conn(
638
639
}
640
641
error = _git_ssh_authenticate_session(session, cred);
642
+
643
+ if (error == GIT_EAUTH) {
644
+ /* refresh auth methods */
645
+ sub_error = list_auth_methods(&auth_methods, session, urldata.username);
646
+ if (sub_error < 0) {
647
+ error = sub_error;
648
+ goto done;
649
+ }
650
651
652
653
if (error < 0)
0 commit comments