Resolving the use of Vagrant [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). error

Vagrant use occurs [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). Error While learning Vagrant and VirtualBox today, the error shown above occurred: Vagrant 2.2.6 + VirtualBox 6.0.14 Permission denied The error message is as follows:

F: \ installs \ Program Files \ VirtualBox \ docker \ first - docker - centos7 > vagrant SSH to [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).Copy the code

Copyright notice: This article is originally published BY CSDN blogger “AI_0922”. It follows CC 4.0 BY-SA copyright agreement. Please attach the original source link and this statement. Original link: blog.csdn.net/ai_0922/art… Just began to encounter this problem thought is insufficient authority of the problem, with the administrator’s way to start CMD window found or useless, behind from the Internet to obtain some solutions, incidentally record their own experience to solve the problem.

Copy the code

Solution: Find the private_key file in the initialization directory

If you do not know the specific path, you can search it through the file search software. Here, I recommend the useful file search software Everything

Right-click -> Properties -> Security -> Advanced

Add the full control permission of the current user

Delete other permissions that are useless, and you can disable inheritance directly to achieve this effect

After you change the permissions to the following, go to Apply -> OK and you’re done

Re-enter Vagrant SSH to successfully enter the virtual machine console

———————————————— Copyright notice: This article is originally published BY CSDN blogger “AI_0922”. It follows CC 4.0 BY-SA copyright agreement. Please attach the link of the original source and this statement. Original link: blog.csdn.net/ai_0922/art…