{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/machine/issues/4243","repository_url":"https://api.github.com/repos/docker/machine","labels_url":"https://api.github.com/repos/docker/machine/issues/4243/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/4243/comments","events_url":"https://api.github.com/repos/docker/machine/issues/4243/events","html_url":"https://github.com/docker/machine/issues/4243","id":255570128,"number":4243,"title":"scp: lost connection error","user":{"login":"prfss","id":7802830,"avatar_url":"https://avatars0.githubusercontent.com/u/7802830?v=4","gravatar_id":"","url":"https://api.github.com/users/prfss","html_url":"https://github.com/prfss","followers_url":"https://api.github.com/users/prfss/followers","following_url":"https://api.github.com/users/prfss/following{/other_user}","gists_url":"https://api.github.com/users/prfss/gists{/gist_id}","starred_url":"https://api.github.com/users/prfss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prfss/subscriptions","organizations_url":"https://api.github.com/users/prfss/orgs","repos_url":"https://api.github.com/users/prfss/repos","events_url":"https://api.github.com/users/prfss/events{/privacy}","received_events_url":"https://api.github.com/users/prfss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-06T11:26:16Z","updated_at":"2017-09-06T11:26:16Z","closed_at":null,"author_association":"NONE","body":"`docker-machine scp` immediately exits with `lost connection` error while `docker-machine ssh` works fine.\r\nI faced this issue when trying example in https://docs.docker.com/get-started/part4/.\r\n\r\nFollowing is the reproducing step\r\n```\r\n$ docker-machine create --driver virtualbox myvm1\r\nRunning pre-create checks...\r\nCreating machine...\r\n(myvm1) Copying C:\\<user_home>\\.docker\\machine\\cache\\boot2docker.iso to C:\\<user_home>\\.docker\\machine\\machines\\myvm1\\boot2docker.iso...\r\n(myvm1) Creating VirtualBox VM...\r\n(myvm1) Creating SSH key...\r\n(myvm1) Starting the VM...\r\n(myvm1) Check network to re-create if needed...\r\n(myvm1) Waiting for an IP...\r\nWaiting for machine to be running, this may take a few minutes...\r\nDetecting operating system of created instance...\r\nWaiting for SSH to be available...\r\nDetecting the provisioner...\r\nProvisioning with boot2docker...\r\nCopying certs to the local machine directory...\r\nCopying certs to the remote machine...\r\nSetting Docker configuration on the remote daemon...\r\n\r\nThis machine has been allocated an IP address, but Docker Machine could not\r\nreach it successfully.\r\n\r\nSSH for the machine should still work, but connecting to exposed ports, such as\r\nthe Docker daemon port (usually <ip>:2376), may not work properly.\r\n\r\nYou may need to add the route manually, or use another related workaround.\r\n\r\nThis could be due to a VPN, proxy, or host file configuration issue.\r\n\r\nYou also might want to clear any VirtualBox host only interfaces you are not using.\r\nChecking connection to Docker...\r\nDocker is up and running!\r\nTo see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: C:\\Program Files\\Docker Toolbox\\docker-machine.exe env myvm1\r\n$ docker-machine --debug scp docker-compose.yml myvm1:~\r\nDocker Machine Version:  0.12.2, build 9371605\r\nFound binary path at C:\\Program Files\\Docker Toolbox\\docker-machine.exe\r\nLaunching plugin server for driver virtualbox\r\nPlugin server listening at address 127.0.0.1:57128\r\n() Calling .GetVersion\r\nUsing API Version  1\r\n() Calling .SetConfigRaw\r\n() Calling .GetMachineName\r\n(myvm1) Calling .GetSSHPort\r\n(myvm1) Calling .GetSSHKeyPath\r\n(myvm1) Calling .GetSSHKeyPath\r\n(myvm1) Calling .GetSSHKeyPath\r\n(myvm1) Calling .GetSSHHostname\r\n(myvm1) Calling .GetSSHUsername\r\n{C:\\Program Files\\Git\\usr\\bin\\scp.exe [C:\\Program Files\\Git\\usr\\bin\\scp.exe -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -3 -o IdentitiesOnly=yes -o Port=55168 -o IdentityFile=C:\\<user_home>\\.docker\\machine\\machines\\myvm1\\id_rsa docker-compose.yml docker@127.0.0.1:~] []  <nil> <nil> <nil> [] <nil> <nil> <nil> <nil> <nil> false [] [] [] [] <nil> <nil>}\r\nlost connection\r\nexit status 1\r\n$ docker-machine ssh myvm1 \"ls\"\r\nlog.log\r\n```\r\n\r\n[~\\\\.docker\\\\machine\\\\machines\\\\myvm1\\config.json](https://gist.github.com/prfss/a52c6281f04f56f04c3218f26e426cbe)\r\n\r\nMy username does not include spaces.\r\n\r\n I can copy files properly using `scp` included in Win32-OpneSSH.\r\n```\r\n> scp -i $env:HOMEPATH\\.docker\\machine\\machines\\myvm1\\id_rsa -P 22 docker-compose.yml docker@192.168.99.101:~\r\ndocker-compose.yml                                                                    100%  316     0.3KB/s   00:00\r\n> scp -i $env:HOMEPATH\\.docker\\machine\\machines\\myvm1\\id_rsa -P 55168 docker-compose.yml docker@127.0.0.1:~\r\ndocker-compose.yml                                                                    100%  316     0.3KB/s   00:00\r\n```\r\n```\r\n$ docker-machine ssh myvm1 \"ls\"\r\ndocker-compose.yml\r\nlog.log\r\n```\r\n\r\n## Environment\r\nDocker Toolbox on Windows 10\r\nVirtualBox 5.1.26 r117224\r\n```\r\n$ docker version\r\nClient:\r\n Version:      17.07.0-ce\r\n API version:  1.31\r\n Go version:   go1.8.3\r\n Git commit:   8784753\r\n Built:        Tue Aug 29 17:41:05 2017\r\n OS/Arch:      windows/amd64\r\n\r\nServer:\r\n Version:      17.07.0-ce\r\n API version:  1.31 (minimum version 1.12)\r\n Go version:   go1.8.3\r\n Git commit:   8784753\r\n Built:        Tue Aug 29 17:46:50 2017\r\n OS/Arch:      linux/amd64\r\n Experimental: false\r\n$ docker-machine -v\r\ndocker-machine.exe version 0.12.2, build 9371605\r\n```"}}
{"actor":{"display_login":"prfss"}}