# feature request: add a way to debug ssh connection

3 messages from 2022-02-07 to 2022-02-07. Participants: Paolo Benvenuto, Matt Rogers.
Thread: https://gitlist.dev/t/57373

## Paolo Benvenuto, 2022-02-07 02:14

Subject: feature request: add a way to debug ssh connection
Message-ID: <CAPQu=HZu0bq0fdnhDN-r5xeQ_caEfSBe5_xAp52LA4sFGXqbQw@mail.gmail.com>
URL: https://gitlist.dev/e/CAPQu%3DHZu0bq0fdnhDN-r5xeQ_caEfSBe5_xAp52LA4sFGXqbQw%40mail.gmail.com
In-Reply-To: <CAPQu=HaH+E5-t4A671GFFLMbiHo=LWP=pucxBG=tT6QjhUXv=w@mail.gmail.com>

```
I'm using git (2.25.1 on xubuntu 20.04), and I access to my remote via
ssh in order to authenticate with ssh key and not to have to use the
username/password pair.

Now, mi internet connection is very slow and unstable, and possibly
has other problems - I'm in Cuba.

Doing "git push" I often cannot connect to remote, sometimes it
connects, sometimes it doesn't.

"git push -v" adds verbosity only with reference to git

I think a "--ssh-verbose" options would be very useful and very simple
to implement. The only thing it must do is adding the -v option to the
ssh command (when it is used).

Also, if the user repeats it, it would add a repeated -v option to ssh command.

Thank you for your work on git!

don Paolo Benvenuto

```

## Matt Rogers, 2022-02-07 15:31

Subject: Re: feature request: add a way to debug ssh connection
Message-ID: <CAOjrSZtfE+SyZAXkyvb3eJ+ZNvkxzqyDmuTRd5WTq4JgcmKiRA@mail.gmail.com>
URL: https://gitlist.dev/e/CAOjrSZtfE%2BSyZAXkyvb3eJ%2BZNvkxzqyDmuTRd5WTq4JgcmKiRA%40mail.gmail.com
In-Reply-To: <CAPQu=HZu0bq0fdnhDN-r5xeQ_caEfSBe5_xAp52LA4sFGXqbQw@mail.gmail.com>

```
Welcome to the git mailing list!

Have you tried doing something like using

`GIT_SSH_COMAND="<whatever your ssh program is> -v" git push"

as recommended in this thread[1]?

[1]: https://stackoverflow.com/q/25388499/7869583

```

## Paolo Benvenuto, 2022-02-07 21:45

Subject: Re: feature request: add a way to debug ssh connection
Message-ID: <CAPQu=HagWL4zoaWqNeO+GOGx8FChurZDNPXJUHmYv54UXwfHzQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAPQu%3DHagWL4zoaWqNeO%2BGOGx8FChurZDNPXJUHmYv54UXwfHzQ%40mail.gmail.com
In-Reply-To: <CAOjrSZtfE+SyZAXkyvb3eJ+ZNvkxzqyDmuTRd5WTq4JgcmKiRA@mail.gmail.com>

```
ok!

don Paolo Benvenuto

Il giorno lun 7 feb 2022 alle ore 10:31 Matt Rogers
<mattr94@gmail.com> ha scritto:
>
> Welcome to the git mailing list!
>
> Have you tried doing something like using
>
> `GIT_SSH_COMAND="<whatever your ssh program is> -v" git push"
>
> as recommended in this thread[1]?
>
> [1]: https://stackoverflow.com/q/25388499/7869583

```
