Cmder: Startup task cmd::Cmder mess with open ssh-agent

Created on 17 Sep 2018  路  4Comments  路  Source: cmderdev/cmder

Purpose of the issue

  • [x ] Bug report (encountered problems/errors)
  • [ ] Feature request (request for new functionality)
  • [ ] Question

Description of the issue

When trying to load the ssh agent by uncommenting the line in user-profile.cmd :

  • call "%GIT_INSTALL_ROOT%/cmd/start-ssh-pageant.cmd"

The agent load in a sub ms-dos context and I'm not able to use ssh-add to add my keys.
Typing exit makes the sub context to be closed and then I get my keys loaded.

Investigation :

Below is the difference between previous and current default configuration
image

If I use the previous configuration, everything works as expected

Most helpful comment

Have a look at #1807 and #1781

All 4 comments

Same kind of behavior is also when using start-ssh-agent.cmd

  • call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd"
    Keys are initialised but on that "ms-dos console" there is no color in prompt and git branch is not shown at all. When exiting this console, branch is shown.

image

Adding that -new_console parameter does not help.

I have the same, bad behaviour.

Have a look at #1807 and #1781

call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd" /k exit is what current versions of cmder has in user_profile.cmd

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bmeverett picture bmeverett  路  3Comments

GlassGruber picture GlassGruber  路  3Comments

edgariscoding picture edgariscoding  路  3Comments

danwellman picture danwellman  路  3Comments

zsedcbm picture zsedcbm  路  3Comments