# The first time running vagrant up on Windows, permission denied (public key, gssapi keyex, gssapi with mic) occurred

**URL:** <https://discuss.hashicorp.com/t/the-first-time-running-vagrant-up-on-windows-permission-denied-public-key-gssapi-keyex-gssapi-with-mic-occurred/61233>\
**Category:** Vagrant\
**Tags:** k8s, vagrant-cloud\
**Created:** [December 28, 2023, 8:45am UTC](https://discuss.hashicorp.com/t/the-first-time-running-vagrant-up-on-windows-permission-denied-public-key-gssapi-keyex-gssapi-with-mic-occurred/61233 "2023-12-28T08:45:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dark-riu](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/dark-riu/32/39568_2.png) [@dark-riu](https://discuss.hashicorp.com/u/dark-riu)\
**Post date:** [December 28, 2023, 8:45am UTC](https://discuss.hashicorp.com/t/the-first-time-running-vagrant-up-on-windows-permission-denied-public-key-gssapi-keyex-gssapi-with-mic-occurred/61233/1 "2023-12-28T08:45:13Z")

</div>

The Vagrant version I am using is 2.0.4, and the VirtualBox version is 7.0.12

，The content of my vagrantFile file is as follows：

```ruby
Vagrant.configure("2") do |config|
    config.vm.define "k8s-node1" do |node|
        node.vm.box = "centos/7"
        node.vm.hostname="k8s-node1"
        node.vm.network "private_network", ip: "192.168.56.101", netmask: "255.255.255.0"
        node.vm.provider "virtualbox" do |v|
            v.name = "k8s-node1"
            v.memory = 2048
            v.cpus = 2
        end
    end

    config.vm.define "k8s-node2" do |node|
        node.vm.box = "centos/7"
        node.vm.hostname="k8s-node2"
        node.vm.network "private_network", ip: "192.168.56.102", netmask: "255.255.255.0"
        node.vm.provider "virtualbox" do |v|
            v.name = "k8s-node2"
            v.memory = 2048
            v.cpus = 2
        end
    end
end

```

But when running the vagrant up command, an error was encountered as shown in the figure. How to solve it？

 ![sp20231228_163822_425](https://global.discourse-cdn.com/hashicorp/original/3X/1/3/131f1e29557de4f24152e17210d4b87eaee73b3e.png)
