...
"permission denied" can be either of the above as well as several other errors. e.g. your are using your ECE or UCSBnetID credentials on a CoE computer or vice versa
Note 1: The password is not stored in the Visual Studio Code settings.
Note 2: The SSH Target (what other programs call ssh keys) are also in another file.
- Navigate to .
You can also use a keyboard shortcut, Control+Shift+P on Windows or Command+Shift+P on MacOS to open the command palette.
- Choose Now: Clear Credentials from the command palette.
Now: Clear credentials commandImage Removed The credentials of the current project are cleared.
- (Optional) Navigate to to check whether the credentials and the instance URL have been deleted for all extensions
- to clear ssh keys, also known as ssh targets, you can remove it on the SSH config file ~/.ssh/config where ~ is your home directory and exact path will vary person to person.
- It is also a good idea to clear the ssh host key/target off
~/.ssh/known_hosts
which is the file used by almost every other ssh program. - (Optional) Some extensions save credentials and need to be cleared as well.
On Windows: you can press windows key + r then type %USERPROFILE%\.sfdx
.
On Linux and Mac OS: ~/.sfdx
.
In that directory you'll find a json file for each login saved, each one named after your username in that org. That json holds the following properties:
username
orgId
accessToken
refreshToken
instanceUrl
loginUrl
clientId
You can delete the ones you don't need.
- (Optional) Navigate to to check whether the credentials and the instance URL have been deleted for all extensions
External Sources of information
...