← 返回首页
On Windows only, operations fail using ssh with PKI · gitpython-developers/GitPython · Discussion #1966 · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus
Discussion options

{{title}}

edited

{{editor}}'s edit

{{actor}} deleted this content .

{{editor}}'s edit

1 You must be logged in to vote
All reactions

I finally figured out the problem. I was running this through WinPython, and its batch files that set the environment prior to running python.exe assign a value to HOME (that is not the current user's home directory). Apparently, that confuses ssh because when I tweaked my process for starting python.exe in WinPython to clear the HOME variable, that fixed the problem.

…so the problem has nothing to do with GitPython, but others attempting to use GitPython under WinPython will likely encounter the same problem.

My specific fix was to stop using WinPython's scripts/python.bat to run Python and to instead call its scripts/env.bat to set up the environment, then SET HOME=, then execute if not…

Replies: 2 comments

Comment options

{{title}}

2 You must be logged in to vote
All reactions
0 replies
Comment options

{{title}}

Marked as answer
1 You must be logged in to vote
👍 1
All reactions
0 replies
Answer selected by stevecj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1964 on October 04, 2024 05:10.

Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu

Select a reply

Loading
👍 1 reacted with thumbs up emoji 👎 1 reacted with thumbs down emoji 😄 1 reacted with laugh emoji 🎉 1 reacted with hooray emoji 😕 1 reacted with confused emoji ❤️ 1 reacted with heart emoji 🚀 1 reacted with rocket emoji 👀 1 reacted with eyes emoji

Footer

© 2026 GitHub, Inc.