![]() Thanks again for your patience with this. If it works, you can keep the git operations with SSH, or change the origin to https shown above. If it doesn’t work, lookup the servers IP address in the file and delete the line too. Search for the hostname in there, and delete the line. In your home directory, there’s ~/.ssh/known_hosts which caches the host key from your GitLab server. Let’s try to fix SSH first, following Host Key Verification Failed - GitLab with Visual Studio Code on macOS - Stack Overflow My guess is that it was cloned with SSH once, looking like using a PAT, it needs to be, and when asked for credentials, user = user, password = PAT. Can you open it, and show the remote origin? A host key verification error originates from SSH.ĪFAIK VS Code uses the local git client on your system, and the. This will open a list of available shells, including Git Bash. If you want to set Git Bash as your default shell, open the Terminal dropdown (next to the + icon) and select Select Default Profile. ![]() It seems though that the sync is not using HTTPS, where it would use the PAT. With Git Bash configured in Visual Studio Code, you can now use all of your favorite Git commands directly from the terminal in your code editor. I thought you do not see any projects, thus lacking permissions with using the PAT for authentication. VSCode reports “Git: Host key verification failed.” when I try to sync to one of the projects.Īaaaaah. Thanks for taking the time to be thorough in your request, it really helps! Documentation is not clear about what needs to be done.Ĭan anyone give me any guidance on how to resolve this issue so that my projects can reconnect with my Gitlab account? Many thanks in advance for any help that can be provided for this! One factor is what path I should use when installing the new PAT - should it be to the parent account directory, or to each specific project separately: I only ever installed one PAT when I set up the system. However, vs code still keep asking for authentication. So I created a new PAT and installed it following the instructions given with the Extension, but now have lost all access to the Gitlab projects within my account. I have followed the instruction on gitlab website and have successfully generated and added SSH key to gitlab. Recently I got a notification that the PAT was going to expire. I have been using the Gitlab Workflow VSCode extension, and set up a PAT to work with that extension some time ago. In addition, Visual Studio will also load the code of the repository in Solution. When you use Visual Studio to open or switch to a Git repository, Visual Studio loads the Git content so that you can view changes, commits, branches, and manage your repository from within the IDE. Have been using VSCode with Gitlab for a long time, connecting to multiple projects within the same Gitlab account without problems. Open folder in Solution Explorer when opening a Git repository.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |