title: Does anybody know how to reset authentication on gitlens extension in Visual Studio Code
body: <p><strong>Problem:</strong></p>
  
  <p>After <code>authenticating</code> and chosing remember <code>password</code> for <code>key passhrase</code> I can't log in to my <code>git repo</code> through <code>Visual Studio Code</code>. It gives me this error:</p>
  
  <pre><code>&gt; git push origin master:master
  Pass a valid window to KWallet::Wallet::openWallet().
  Pass a valid window to KWallet::Wallet::openWallet().
  Pass a valid window to KWallet::Wallet::openWallet().
  Permission denied (publickey).
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/RqIEd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RqIEd.png" alt="enter image description here"></a></p>
  
  <p>My system is:</p>
  
  <pre><code>[13:32:47][root] ~ ~↓↓$↓↓ cat /etc/os-release                                                                                                               
  PRETTY_NAME="Debian GNU/Linux 9 (stretch)"                                                                                                                  
  NAME="Debian GNU/Linux"                                                                                                                                     
  VERSION_ID="9"                                                                                                                                              
  VERSION="9 (stretch)"                                                                                                                                       
  ID=debian                                                                                                                                                   
  HOME_URL="https://www.debian.org/"                                                                                                                          
  SUPPORT_URL="https://www.debian.org/support"                                                                                                                
  BUG_REPORT_URL="https://bugs.debian.org/"
  </code></pre>
  
  <p>I'm using KDE.</p>
  
  <hr>
  
  <p>Visual Studio Code is:</p>
  
  <pre><code>Version: 1.34.0
  Commit: a622c65b2c713c890fcf4fbf07cf34049d5fe758
  Date: 2019-05-15T21:55:35.507Z
  Electron: 3.1.8
  Chrome: 66.0.3359.181
  Node.js: 10.2.0
  V8: 6.6.346.32
  OS: Linux x64 4.9.0-9-amd64
  </code></pre>
  
  <p>I have this function in my <code>.bashrc</code> file:</p>
  
  <pre><code>258 [[ $- == *i* ]] &amp;&amp; echo "Interactive"
  259 if [[ $? == 0 ]]
  260 then
  261     if [ -z "$SSH_AUTH_SOCK" ]
  262     then
  263         choice=""
  264         printf "%s:" "Do you wish to set the ssh key now (Y/n):"
  265         read choice
  266         if [[ "$choice" == "Y" || "$choice" == "y" ]]
  267         then
  268             eval `ssh-agent`
  269             ssh-add
  270         fi
  271     fi
  272 fi
  </code></pre>
  
  <p>And it asked me if I wanted "yes or no" like in the function so the connection was using an interactive shell when it tried to authenticate me. Then it asked me for the key-passhrace.</p>
  
  <p><strong>QUESTION:</strong></p>
  
  <p>I need to reset something but I don't know what and google gives me nothing.</p>
  
  <p>Do you know what to do to fix this?</p>
  
  <p>I tried to connect with <code>git</code> command from the command line and it works so <code>keys</code> are all ok.</p>