git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [bug] git clone command leaves orphaned ssh process

From
Bagas Sanjaya <bagasdotme@gmail.com>
Date
Sep 10, 2023, 08:50 UTC
Message-ID
<ZP2DaQMA_aFvjQiR@debian.me>
In-Reply-To
<CAN47KsV0E+XC2F+TVKXnnJnkATRp7eM7=-ZJFyZcoTz9SJmcHQ@mail.gmail.com>
On Sun, Sep 10, 2023 at 09:38:54AM +0300, Max Amelchenko wrote:
Show 19 quoted lines
> What did you do before the bug happened? (Steps to reproduce your issue)
> 
> Run the command:
> ps aux
> Observe no ssh processes running on system.
> 
> Run git clone against a non-existent hostname:
> git clone -v --depth=1 -b 3.23.66
> ssh://*****@*****lab-prod.server.sim.cloud/terraform/modules/aws-eks
> /tmp/dest
> Observe the command fails with:
> 
> Could not resolve hostname *****lab-prod.server.sim.cloud: Name or
> service not known
> 
> Run:
> ps aux
> 
> Observe a defunct ssh process is left behind.
On git current master on my system, I got sshd (server) processes instead:

``` root 835 0.0 0.0 15500 3584 ? Ss 14:38 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups 165536 3865 0.0 0.0 8488 1408 ? Ss 14:39 0:00 sshd: /usr/sbin/sshd -D -e [listener] 0 of 10-100 startups 165536 4039 0.0 0.0 11308 1920 ? Ss 14:40 0:00 sshd: /usr/bin/sshd -D [listener] 0 of 10-100 startups 165536 4374 0.0 0.0 15404 1920 ? Ss 14:40 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups 165536 4399 0.0 0.0 15404 1792 ? Ss 14:40 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups 165536 4732 0.0 0.0 15404 2048 ? Ss 14:41 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups 165536 4943 0.0 0.0 18004 848 ? Ss 14:41 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups bagas 6841 0.0 0.0 7668 1092 ? Ss 14:43 0:00 /usr/bin/ssh-agent /usr/bin/im-launch /usr/bin/gnome-session bagas 6908 0.0 0.1 162780 5488 ? Ssl 14:43 0:00 /usr/libexec/gcr-ssh-agent /run/user/1000/gcr

```
What is your ps output then?
Thanks.
-- 
An old man doll... just what I always wanted! - Clara
Previous: Max AmelchenkoNext: Max Amelchenko
Message 2 of 9 in “[bug] git clone command leaves orphaned ssh process”
  1. Max AmelchenkoSep 10, 2023
  2. Bagas SanjayaSep 10, 2023
  3. Max AmelchenkoSep 10, 2023
  4. Taylor BlauSep 10, 2023
  5. Max AmelchenkoSep 11, 2023
  6. Aaron SchrabSep 12, 2023
  7. Jeff KingSep 12, 2023
  8. Max AmelchenkoSep 24, 2023
  9. Jeff KingSep 25, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.