VS Code pushing to github is needlessly prompting for username and password #4763
|
I'm trying to learn how to use dev containers in code. I'm using a GitHub remote repo via https. Whenever I try to push a commit to GitHub, I get an OpenSSH dialog asking for a username. If I click cancel, the changes are successfully pushed. I'm trying to track down why I'm being prompted for credentials that aren't needed. Best I can tell, the SSH_ASKPASS variable is messing with me, but I've no idea how to fix this. Any help is appreciated. For reference, here is my container json: {
"name": "k3s Cluster Tools",
"runArgs": ["--name=k3s-cluster-tools"],
"build": {
"dockerfile": "Dockerfile",
"args": {
"FLUX_VERSION": "2.8.8",
"KUBECTL_VERSION": "1.36.1",
"HELM_VERSION": "4.2.0",
"K9S_VERSION": "0.51.0",
"CNPG_VERSION": "1.29.1",
"LONGHORNCTL_VERSION": "1.11.2",
"SOPS_VERSION": "3.13.1"
}
},
"mounts": [
{
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.kube",
"target": "/home/vscode/.kube",
"type": "bind"
},
{
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.ssh",
"target": "/home/vscode/.ssh",
"type": "bind"
},
{
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.gitconfig",
"target": "/home/vscode/.gitconfig",
"type": "bind"
}
],
"remoteUser": "vscode",
"customizations": {
"vscode": {
"extensions": [
"ms-kubernetes-tools.vscode-kubernetes-tools",
"weaveworks.vscode-gitops-tools",
"github.vscode-github-actions"
]
}
}
} |
Replies: 2 comments 3 replies
|
Hi @cvsickle! I'm Dosu and I'm helping the Bluefin team. This is a known-fixed issue. Bluefin previously shipped a system-wide This was removed in projectbluefin/common#118, merged in January 2026 [2]. Immediate workaround — unset the variable in your shell profile (e.g. unset SUDO_ASKPASSThen restart VS Code. Alternatively, run For reference, the Bluefin dev container documentation is here: https://docs.projectbluefin.io/bluefin-dx/#visual-studio-code-with-docker To reply, just mention @dosu. Docs are dead. Just use Dosu. |
|
After trying many things that didn't fix or workaround the issue, I ended up adding a |
After trying many things that didn't fix or workaround the issue, I ended up adding a
[credential "https://github.com"]section to my.gitconfigto point at the VS Code credential manager. This stopped the popups for username/password.