{"action":"created","issue":{"url":"https://api.github.com/repos/puphpet/puphpet/issues/1790","labels_url":"https://api.github.com/repos/puphpet/puphpet/issues/1790/labels{/name}","comments_url":"https://api.github.com/repos/puphpet/puphpet/issues/1790/comments","events_url":"https://api.github.com/repos/puphpet/puphpet/issues/1790/events","html_url":"https://github.com/puphpet/puphpet/issues/1790","id":96053312,"number":1790,"title":"Vagrant on windows ssh auth fail","user":{"login":"Tom-Millard","id":3628283,"avatar_url":"https://avatars.githubusercontent.com/u/3628283?v=3","gravatar_id":"","url":"https://api.github.com/users/Tom-Millard","html_url":"https://github.com/Tom-Millard","followers_url":"https://api.github.com/users/Tom-Millard/followers","following_url":"https://api.github.com/users/Tom-Millard/following{/other_user}","gists_url":"https://api.github.com/users/Tom-Millard/gists{/gist_id}","starred_url":"https://api.github.com/users/Tom-Millard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tom-Millard/subscriptions","organizations_url":"https://api.github.com/users/Tom-Millard/orgs","repos_url":"https://api.github.com/users/Tom-Millard/repos","events_url":"https://api.github.com/users/Tom-Millard/events{/privacy}","received_events_url":"https://api.github.com/users/Tom-Millard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-20T12:27:33Z","updated_at":"2015-07-28T13:53:39Z","closed_at":null,"body":"I recently set up a vagrant box on my windows machine at home with no problems, I need to migrate the set up to my office box however after a few issues I finally had it working however the ssh authentication fails.\r\n\r\nThe office set up places all user information in a user partition - U:// \r\n\r\nMy ssh key is present in the same drive along with my project.\r\n\r\nThere seems to be some kind of mismatch between the two environments, even though everything is set up the same.\r\n\r\nmy Vagrant variable points to the correct location, I cant seem to see any difference between the 'insecure_private_key' and the private key generated by puppet.\r\n\r\n```\r\n$ vagrant ssh-config\r\nHost default\r\n  HostName 127.0.0.1\r\n  User vagrant\r\n  Port 2222\r\n  UserKnownHostsFile /dev/null\r\n  StrictHostKeyChecking no\r\n  PasswordAuthentication no\r\n  IdentityFile u:/github/[code]/puphpet/files/dot/ssh/id_rsa\r\n  IdentityFile U:/.vagrant.d/insecure_private_key\r\n  IdentitiesOnly yes\r\n  LogLevel FATAL\r\n```\r\n\r\n```yaml\r\nvagrantfile:\r\n    target: local\r\n    vm:\r\n        box: puphpet/centos65-x64\r\n        box_url: puphpet/centos65-x64\r\n        hostname: local.site\r\n        memory: '1024'\r\n        cpus: '1'\r\n        chosen_provider: virtualbox\r\n        network:\r\n            private_network: 192.168.56.130\r\n            forwarded_port:\r\n                vflnp_s87u7itkxo0l:\r\n                    host: '9000'\r\n                    guest: '22'\r\n        post_up_message: ''\r\n        provider:\r\n            virtualbox:\r\n                modifyvm:\r\n                    natdnshostresolver1: 'on'\r\n                showgui: '0'\r\n            vmware:\r\n                numvcpus: 1\r\n            parallels:\r\n                cpus: 1\r\n        provision:\r\n            puppet:\r\n                manifests_path: puphpet/puppet\r\n                manifest_file: site.pp\r\n                module_path: puphpet/puppet/modules\r\n                options:\r\n                    - '--verbose'\r\n                    - '--hiera_config /vagrant/puphpet/puppet/hiera.yaml'\r\n                    - '--parser future'\r\n        synced_folder:\r\n            vflsf_lr0598aazisj:\r\n                source: ./\r\n                target: /var/www\r\n                sync_type: default\r\n                smb:\r\n                    smb_host: ''\r\n                    smb_username: ''\r\n                    smb_password: ''\r\n                rsync:\r\n                    args:\r\n                        - '--verbose'\r\n                        - '--archive'\r\n                        - '-z'\r\n                    exclude:\r\n                        - .vagrant/\r\n                        - .git/\r\n                    auto: 'true'\r\n                owner: www-data\r\n                group: www-data\r\n        usable_port_range:\r\n            start: 10200\r\n            stop: 10500\r\n    ssh:\r\n        host: null\r\n        port: null\r\n        private_key_path: null\r\n        username: vagrant\r\n        guest_port: null\r\n        keep_alive: true\r\n        forward_agent: false\r\n        forward_x11: false\r\n        shell: 'bash -l'\r\n    vagrant:\r\n        host: detect\r\nserver:\r\n    install: '1'\r\n    packages: {  }\r\nusers_groups:\r\n    install: '1'\r\n    groups: {  }\r\n    users: {  }\r\nlocale:\r\n    install: '1'\r\n    settings:\r\n        default_locale: ''\r\n        locales:\r\n            - 'en_GB.UTF-8 UTF-8'\r\n            - 'en_US.UTF-8 UTF-8'\r\nfirewall:\r\n    install: '1'\r\n    rules: {  }\r\ncron:\r\n    install: '1'\r\n    jobs: {  }\r\nnginx:\r\n    install: '0'\r\n    settings:\r\n        default_vhost: 1\r\n        proxy_buffer_size: 128k\r\n        proxy_buffers: '4 256k'\r\n    upstreams: {  }\r\n    vhosts:\r\n        nxv_ywvdk205m4n2:\r\n            server_name: awesome.dev\r\n            server_aliases:\r\n                - www.awesome.dev\r\n            www_root: /var/www/awesome\r\n            listen_port: '80'\r\n            index_files:\r\n                - index.html\r\n                - index.htm\r\n                - index.php\r\n            client_max_body_size: 1m\r\n            ssl: '0'\r\n            ssl_cert: ''\r\n            ssl_key: ''\r\n            ssl_port: '443'\r\n            ssl_protocols: ''\r\n            ssl_ciphers: ''\r\n            rewrite_to_https: '1'\r\n            spdy: '1'\r\n            locations:\r\n                nxvl_aqozy0a952wu:\r\n                    location: /\r\n                    autoindex: 'off'\r\n                    try_files:\r\n                        - $uri\r\n                        - $uri/\r\n                        - /index.php$is_args$args\r\n                    fastcgi: ''\r\n                    fastcgi_index: ''\r\n                    fastcgi_split_path: ''\r\n                nxvl_ao66qc4luafc:\r\n                    location: '~ \\.php$'\r\n                    autoindex: 'off'\r\n                    try_files:\r\n                        - $uri\r\n                        - $uri/\r\n                        - /index.php$is_args$args\r\n                    fastcgi: '127.0.0.1:9000'\r\n                    fastcgi_index: index.php\r\n                    fastcgi_split_path: '^(.+\\.php)(/.*)$'\r\n                    fast_cgi_params_extra:\r\n                        - 'SCRIPT_FILENAME $request_filename'\r\n                        - 'APP_ENV dev'\r\n    proxies: {  }\r\napache:\r\n    install: '1'\r\n    settings:\r\n        user: www-data\r\n        group: www-data\r\n        default_vhost: true\r\n        manage_user: false\r\n        manage_group: false\r\n        sendfile: 0\r\n    modules:\r\n        - proxy_fcgi\r\n        - rewrite\r\n    vhosts:\r\n        av_6p7ex07kv9co:\r\n            servername: local.dev\r\n            serveraliases:\r\n                - [alias]\r\n                - [alias]\r\n                - [alias]\r\n                - [alias]\r\n                - [alias]\r\n                - [alias]\r\n            docroot: /var/www/code\r\n            port: '80'\r\n            setenv:\r\n                - 'APP_ENV dev'\r\n            custom_fragment: ''\r\n            ssl: '0'\r\n            ssl_cert: ''\r\n            ssl_key: ''\r\n            ssl_chain: ''\r\n            ssl_certs_dir: ''\r\n            ssl_protocol: ''\r\n            ssl_cipher: ''\r\n            directories:\r\n                avd_k6toznguxbfa:\r\n                    path: /vagrant/public\r\n                    options:\r\n                        - MultiViews\r\n                        - Indexes\r\n                        - FollowSymlinks\r\n                    allow_override:\r\n                        - All\r\n                    require:\r\n                        - 'all granted'\r\n                    custom_fragment: ''\r\n                    files_match:\r\n                        avdfm_mt5x9s0ij9le:\r\n                            path: \\.php$\r\n                            sethandler: 'proxy:fcgi://127.0.0.1:9000'\r\n                            custom_fragment: ''\r\n                            provider: filesmatch\r\n                    provider: directory\r\nphp:\r\n    install: '1'\r\n    settings:\r\n        version: '54'\r\n    modules:\r\n        php:\r\n            - cli\r\n            - intl\r\n            - mcrypt\r\n        pear: {  }\r\n        pecl:\r\n            - pecl_http\r\n    ini:\r\n        display_errors: 'On'\r\n        error_reporting: '-1'\r\n        session.save_path: /var/lib/php/session\r\n        date.timezone: UTC\r\n    fpm_ini:\r\n        error_log: /var/log/php-fpm.log\r\n    fpm_pools:\r\n        phpfp_cn03t34da9vp:\r\n            ini:\r\n                prefix: www\r\n                listen: '127.0.0.1:9000'\r\n                security.limit_extensions: .php\r\n                user: www-user\r\n                group: www-data\r\n    composer: '1'\r\n    composer_home: ''\r\nxdebug:\r\n    install: '0'\r\n    settings:\r\n        xdebug.default_enable: '1'\r\n        xdebug.remote_autostart: '0'\r\n        xdebug.remote_connect_back: '1'\r\n        xdebug.remote_enable: '1'\r\n        xdebug.remote_handler: dbgp\r\n        xdebug.remote_port: '9000'\r\nblackfire:\r\n    install: '0'\r\n    settings:\r\n        server_id: ''\r\n        server_token: ''\r\n        agent:\r\n            http_proxy: ''\r\n            https_proxy: ''\r\n            log_file: stderr\r\n            log_level: '1'\r\n        php:\r\n            agent_timeout: '0.25'\r\n            log_file: ''\r\n            log_level: '1'\r\nxhprof:\r\n    install: '0'\r\nwpcli:\r\n    install: '0'\r\n    version: v0.19.0\r\ndrush:\r\n    install: '0'\r\n    version: 6.3.0\r\nruby:\r\n    install: '1'\r\n    versions: {  }\r\npython:\r\n    install: '1'\r\n    packages: {  }\r\n    versions: {  }\r\nnodejs:\r\n    install: '1'\r\n    npm_packages:\r\n        - gulp@3.9.0\r\nhhvm:\r\n    install: '0'\r\n    nightly: 0\r\n    composer: '1'\r\n    composer_home: ''\r\n    settings: {  }\r\n    server_ini:\r\n        hhvm.server.host: 127.0.0.1\r\n        hhvm.server.port: '9000'\r\n        hhvm.log.use_log_file: '1'\r\n        hhvm.log.file: /var/log/hhvm/error.log\r\n    php_ini:\r\n        display_errors: 'On'\r\n        error_reporting: '-1'\r\n        date.timezone: UTC\r\nmysql:\r\n    install: '1'\r\n    settings:\r\n        version: '5.6'\r\n        root_password: '123'\r\n        override_options: {  }\r\n    adminer: 0\r\n    users:\r\n        mysqlnu_y9y47vyl8rjf:\r\n            name: vagrant\r\n            password: 'vagrant123*'\r\n    databases:\r\n        mysqlnd_5pilntir0jpv:\r\n            name: db\r\n            sql: ''\r\n    grants:\r\n        mysqlng_95pzpi3x1ssg:\r\n            user: vagrant\r\n            table: '*.*'\r\n            privileges:\r\n                - ALL\r\nmariadb:\r\n    install: '0'\r\n    settings:\r\n        version: '10.0'\r\n        root_password: '123'\r\n        override_options: {  }\r\n    adminer: 0\r\n    users:\r\n        mariadbnu_dd6eily4ndvu:\r\n            name: dbuser\r\n            password: '123'\r\n    databases:\r\n        mariadbnd_uyhp0guimgz1:\r\n            name: dbname\r\n            sql: ''\r\n    grants:\r\n        mariadbng_2o2embhk9u9x:\r\n            user: dbuser\r\n            table: '*.*'\r\n            privileges:\r\n                - ALL\r\npostgresql:\r\n    install: '0'\r\n    settings:\r\n        global:\r\n            encoding: UTF8\r\n            version: '9.3'\r\n        server:\r\n            postgres_password: '123'\r\n    databases: {  }\r\n    users: {  }\r\n    grants: {  }\r\n    adminer: 0\r\nmongodb:\r\n    install: '0'\r\n    settings:\r\n        auth: 1\r\n        bind_ip: 127.0.0.1\r\n        port: '27017'\r\n    databases: {  }\r\nredis:\r\n    install: '0'\r\n    settings:\r\n        conf_port: '6379'\r\nsqlite:\r\n    install: '0'\r\n    adminer: 0\r\n    databases: {  }\r\nmailcatcher:\r\n    install: '0'\r\n    settings:\r\n        smtp_ip: 0.0.0.0\r\n        smtp_port: 1025\r\n        http_ip: 0.0.0.0\r\n        http_port: '1080'\r\n        mailcatcher_path: /usr/local/rvm/wrappers/default\r\n        from_email_method: inline\r\nbeanstalkd:\r\n    install: '0'\r\n    settings:\r\n        listenaddress: 0.0.0.0\r\n        listenport: '13000'\r\n        maxjobsize: '65535'\r\n        maxconnections: '1024'\r\n        binlogdir: /var/lib/beanstalkd/binlog\r\n        binlogfsync: null\r\n        binlogsize: '10485760'\r\n    beanstalk_console: 0\r\nrabbitmq:\r\n    install: '0'\r\n    settings:\r\n        port: '5672'\r\n    users: {  }\r\n    vhosts: {  }\r\n    plugins: {  }\r\nelastic_search:\r\n    install: '0'\r\n    settings:\r\n        version: 1.4.1\r\n        java_install: true\r\nsolr:\r\n    install: '0'\r\n    settings:\r\n        version: 4.10.2\r\n        port: '8984'\r\n\r\n```\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/puphpet/puphpet/issues/comments/125618044","html_url":"https://github.com/puphpet/puphpet/issues/1790#issuecomment-125618044","issue_url":"https://api.github.com/repos/puphpet/puphpet/issues/1790","id":125618044,"user":{"login":"philbates35","id":4882082,"avatar_url":"https://avatars.githubusercontent.com/u/4882082?v=3","gravatar_id":"","url":"https://api.github.com/users/philbates35","html_url":"https://github.com/philbates35","followers_url":"https://api.github.com/users/philbates35/followers","following_url":"https://api.github.com/users/philbates35/following{/other_user}","gists_url":"https://api.github.com/users/philbates35/gists{/gist_id}","starred_url":"https://api.github.com/users/philbates35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philbates35/subscriptions","organizations_url":"https://api.github.com/users/philbates35/orgs","repos_url":"https://api.github.com/users/philbates35/repos","events_url":"https://api.github.com/users/philbates35/events{/privacy}","received_events_url":"https://api.github.com/users/philbates35/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T13:53:39Z","updated_at":"2015-07-28T13:53:39Z","body":"I also had this issue using Vagrant 1.7.4 on Windows 8.1. @bajax 's temporary work around of adding `config.ssh.insert_key = false` before the last `end` worked for me."}}