Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks
sdaclin opened this issue Sep 17, 2018 · 4 comments
Closed
2 tasks

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

sdaclin opened this issue Sep 17, 2018 · 4 comments

Comments

@sdaclin
Copy link

sdaclin commented Sep 17, 2018

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

@Ton-Pe
Copy link

Ton-Pe commented Sep 25, 2018

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.

@dw72
Copy link

dw72 commented Oct 13, 2018

I have the same, bad behaviour.

@bastelflp
Copy link

Have a look at #1807 and #1781

@daxgames daxgames closed this as completed Mar 1, 2019
@daxgames
Copy link
Member

daxgames commented Mar 1, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants