Keeps asking for SSH passphrase
Please consider this a draft issue. I will add more info gradually.
GitDoc keeps asking me for the SSH passphrase.
I also (sometimes?) get the notification "Remote repository contains conflicting changes." I presume GitDoc always does a force push, nay? Clicking "Force Push" brings up the prompt for the passphrase again! On entering the passphrase, the passphrase prompt shows up again after a short while.
I use ssh-agent as my ssh agent with the default config. Even in VSCode, once I enter my passphrase, I don't need to enter it again for the rest of the session.
setttings.json
{
"gitdoc.enabled": true,
}
On L28: I I run git fetch manually and enter the passphrase, it works. I can confirm the passphrase is correct since I paste it in from my password manager (rather than type it out). Is the passphrase "passed on" correctly?
Logs
2023-07-11 11:57:44.362 [info] Log level: Info
2023-07-11 11:57:44.362 [info] Validating found git in: "git"
2023-07-11 11:57:44.362 [info] Using git "2.41.0" from "git"
2023-07-11 11:57:44.362 [info] > git rev-parse --show-toplevel [6ms]
2023-07-11 11:57:44.362 [info] > git rev-parse --git-dir --git-common-dir [3ms]
2023-07-11 11:57:44.362 [info] Open repository: /home/threadripper/code/zettelkasten
2023-07-11 11:57:44.362 [info] > git rev-parse --show-toplevel [22ms]
2023-07-11 11:57:44.362 [info] > git log --oneline --cherry ...@{upstream} -- [44ms]
2023-07-11 11:57:44.362 [info] > git rev-parse --show-toplevel [17ms]
2023-07-11 11:57:44.362 [info] > git config --get commit.template [36ms]
2023-07-11 11:57:44.364 [info] > git rev-parse --show-toplevel [22ms]
2023-07-11 11:57:44.377 [info] > git rev-parse --show-toplevel [8ms]
2023-07-11 11:57:44.392 [info] > git rev-parse --show-toplevel [10ms]
2023-07-11 11:57:44.399 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [24ms]
2023-07-11 11:57:44.421 [info] > git status -z -uall [14ms]
2023-07-11 11:57:44.427 [info] > git rev-parse --show-toplevel [28ms]
2023-07-11 11:57:44.464 [info] > git rev-parse --show-toplevel [32ms]
2023-07-11 11:57:44.525 [info] > git rev-parse --show-toplevel [53ms]
2023-07-11 11:57:44.533 [info] > git config --get commit.template [76ms]
2023-07-11 11:57:44.538 [info] > git rev-parse --show-toplevel [6ms]
2023-07-11 11:57:44.556 [info] > git rev-parse --show-toplevel [11ms]
2023-07-11 11:57:44.604 [info] > git rev-parse --show-toplevel [41ms]
2023-07-11 11:57:44.611 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [57ms]
2023-07-11 11:57:44.619 [info] > git rev-parse --show-toplevel [9ms]
2023-07-11 11:57:45.161 [info] > git status -z -uall [543ms]
2023-07-11 11:57:45.161 [info] > git check-ignore -v -z --stdin [3ms]
2023-07-11 11:57:45.162 [info] > git rev-parse --show-toplevel [537ms]
2023-07-11 11:57:46.535 [info] > git fetch [2253ms]
2023-07-11 11:57:46.535 [info] Missing or invalid credentials.
Skip silent fetch commands
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
2023-07-11 11:57:46.561 [info] > git config --get commit.template [4ms]
2023-07-11 11:57:46.600 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [18ms]
2023-07-11 11:57:46.618 [info] > git status -z -uall [6ms]
2023-07-11 11:57:47.311 [info] > git check-ignore -v -z --stdin [12ms]
2023-07-11 11:58:01.392 [info] > git pull --tags [17064ms]
2023-07-11 11:58:01.467 [info] > git config --get commit.template [36ms]
2023-07-11 11:58:01.468 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [4ms]
2023-07-11 11:58:01.489 [info] > git status -z -uall [4ms]
2023-07-11 11:58:04.233 [info] > git show --textconv :drafts/til-html-media.md [40ms]
2023-07-11 11:58:04.241 [info] > git ls-files --stage -- /home/threadripper/code/zettelkasten/drafts/til-html-media.md [33ms]
2023-07-11 11:58:04.274 [info] > git cat-file -s e756c776de043982f3a1a1fc9755f6ffb6dc8253 [19ms]
2023-07-11 11:58:46.560 [info] > git config --get commit.template [13ms]
2023-07-11 11:58:46.561 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [2ms]
2023-07-11 11:58:46.576 [info] > git status -z -uall [3ms]
2023-07-11 11:58:51.616 [info] > git config --get commit.template [18ms]
2023-07-11 11:58:51.617 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [3ms]
2023-07-11 11:58:51.636 [info] > git status -z -uall [3ms]
2023-07-11 11:59:21.674 [info] > git add -A -- /home/threadripper/code/zettelkasten/drafts/til-html-media.md [5ms]
2023-07-11 11:59:21.734 [info] > git config --get commit.template [29ms]
2023-07-11 11:59:21.736 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [3ms]
2023-07-11 11:59:21.762 [info] > git status -z -uall [5ms]
2023-07-11 11:59:21.806 [info] > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - --allow-empty-message [21ms]
2023-07-11 11:59:21.825 [info] > git config --get commit.template [4ms]
2023-07-11 11:59:21.842 [info] > git config --get commit.template [3ms]
2023-07-11 11:59:21.857 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [2ms]
2023-07-11 11:59:21.872 [info] > git status -z -uall [3ms]
2023-07-11 11:59:21.898 [info] > git log --oneline --cherry main...main@{upstream} -- [1ms]
2023-07-11 11:59:23.175 [info] > git ls-files --stage -- /home/threadripper/code/zettelkasten/drafts/til-html-media.md [2ms]
2023-07-11 11:59:23.202 [info] > git cat-file -s b3b3daae85adbef5042c6d90a0dbc0eadc7fbea3 [3ms]
2023-07-11 11:59:23.232 [info] > git show --textconv :drafts/til-html-media.md [6ms]
2023-07-11 11:59:36.358 [info] > git pull --tags origin main [14446ms]
2023-07-11 11:59:36.358 [info] From github.com:threadripper/zettelkasten
* branch main -> FETCH_HEAD
2023-07-11 11:59:37.603 [info] > git ls-files --stage -- /home/threadripper/code/zettelkasten/drafts/til-html-media.md [2ms]
2023-07-11 11:59:37.631 [info] > git cat-file -s b3b3daae85adbef5042c6d90a0dbc0eadc7fbea3 [15ms]
2023-07-11 11:59:37.646 [info] > git show --textconv :drafts/til-html-media.md [1ms]
2023-07-11 11:59:42.992 [info] > git push origin main:main [6598ms]
2023-07-11 11:59:42.992 [info] To github.com:threadripper/zettelkasten.git
e84c6a9..624bb39 main -> main
2023-07-11 11:59:43.052 [info] > git config --get commit.template [27ms]
2023-07-11 11:59:43.054 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [3ms]
2023-07-11 11:59:43.091 [info] > git status -z -uall [16ms]
2023-07-11 11:59:43.144 [info] > git config --get commit.template [15ms]
2023-07-11 11:59:43.162 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [3ms]
2023-07-11 11:59:43.198 [info] > git status -z -uall [20ms]
2023-07-11 11:59:43.220 [info] > git log --oneline --cherry main...main@{upstream} -- [3ms]
2023-07-11 11:59:45.885 [info] > git ls-files --stage -- /home/threadripper/code/zettelkasten/drafts/til-html-media.md [1ms]
2023-07-11 11:59:45.901 [info] > git cat-file -s b3b3daae85adbef5042c6d90a0dbc0eadc7fbea3 [2ms]
2023-07-11 11:59:45.917 [info] > git show --textconv :drafts/til-html-media.md [2ms]
2023-07-11 11:59:49.776 [info] > git pull --tags [6541ms]
2023-07-11 11:59:49.832 [info] > git config --get commit.template [26ms]
2023-07-11 11:59:49.834 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [4ms]
2023-07-11 11:59:49.861 [info] > git status -z -uall [4ms]
2023-07-11 11:59:50.673 [info] > git ls-files --stage -- /home/threadripper/code/zettelkasten/drafts/til-html-media.md [4ms]
2023-07-11 11:59:50.695 [info] > git cat-file -s b3b3daae85adbef5042c6d90a0dbc0eadc7fbea3 [2ms]
2023-07-11 11:59:50.712 [info] > git show --textconv :drafts/til-html-media.md [2ms]
2023-07-11 11:59:57.810 [info] > git push --force origin main [7924ms]
2023-07-11 11:59:57.810 [info] [email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
2023-07-11 12:00:03.889 [info] > git config --get commit.template [14ms]
2023-07-11 12:00:03.906 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [2ms]
2023-07-11 12:00:03.921 [info] > git status -z -uall [3ms]
2023-07-11 12:00:19.889 [info] > git add -A -- /home/threadripper/code/zettelkasten/.vscode/settings.json /home/threadripper/code/zettelkasten/drafts/til-html-media.md [2ms]
2023-07-11 12:00:19.918 [info] > git config --get commit.template [15ms]
2023-07-11 12:00:19.919 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [1ms]
2023-07-11 12:00:19.936 [info] > git status -z -uall [3ms]
2023-07-11 12:00:19.961 [info] > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - --allow-empty-message [7ms]
2023-07-11 12:00:19.978 [info] > git config --get commit.template [3ms]
2023-07-11 12:00:20.015 [info] > git config --get commit.template [21ms]
2023-07-11 12:00:20.035 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [3ms]
2023-07-11 12:00:20.057 [info] > git status -z -uall [5ms]
2023-07-11 12:00:20.090 [info] > git log --oneline --cherry main...main@{upstream} -- [3ms]
2023-07-11 12:00:21.404 [info] > git ls-files --stage -- /home/threadripper/code/zettelkasten/drafts/til-html-media.md [5ms]
2023-07-11 12:00:21.433 [info] > git cat-file -s 08826b236422cbe6581ce0c1a1ab6d53fa194503 [4ms]
2023-07-11 12:00:21.453 [info] > git show --textconv :drafts/til-html-media.md [1ms]
2023-07-11 12:00:26.685 [info] > git pull --tags origin main [6579ms]
2023-07-11 12:00:26.685 [info] [email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
2023-07-11 12:00:26.700 [info] > git config --get commit.template [2ms]
2023-07-11 12:00:26.715 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [2ms]
2023-07-11 12:00:26.736 [info] > git status -z -uall [3ms]
2023-07-11 12:00:26.785 [info] > git config --get commit.template [2ms]
2023-07-11 12:00:26.802 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [3ms]
2023-07-11 12:00:26.825 [info] > git status -z -uall [3ms]
2023-07-11 12:00:26.851 [info] > git log --oneline --cherry main...main@{upstream} -- [2ms]
2023-07-11 12:00:29.593 [info] > git ls-files --stage -- /home/threadripper/code/zettelkasten/drafts/til-html-media.md [2ms]
2023-07-11 12:00:29.610 [info] > git cat-file -s 08826b236422cbe6581ce0c1a1ab6d53fa194503 [3ms]
2023-07-11 12:00:29.702 [info] > git show --textconv :drafts/til-html-media.md [2ms]
2023-07-11 12:00:50.984 [info] > git pull --tags [24116ms]
2023-07-11 12:00:50.985 [info] [email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
2023-07-11 12:00:51.018 [info] > git config --get commit.template [4ms]
2023-07-11 12:00:51.038 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [3ms]
2023-07-11 12:00:51.058 [info] > git status -z -uall [5ms]
2023-07-11 12:00:52.299 [info] > git ls-files --stage -- /home/threadripper/code/zettelkasten/drafts/til-html-media.md [4ms]
2023-07-11 12:00:52.332 [info] > git cat-file -s 08826b236422cbe6581ce0c1a1ab6d53fa194503 [3ms]
2023-07-11 12:00:52.352 [info] > git show --textconv :drafts/til-html-media.md [3ms]
2023-07-11 12:00:53.364 [info] > git fetch [2288ms]
2023-07-11 12:00:53.365 [info] Missing or invalid credentials.
Skip silent fetch commands
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
2023-07-11 12:00:53.380 [info] > git config --get commit.template [1ms]
2023-07-11 12:00:53.395 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [2ms]
2023-07-11 12:00:53.412 [info] > git status -z -uall [3ms]