mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
Unable to copy ssh key to OSX (Connection refused) #253
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cyruscook on GitHub (Oct 6, 2021).
Hello,
I am running into an issue attempting to run
docker-osx:auto:Do you have any ideas what would be causing this? I have left this running for quite a long time and it just continues.
The readme suggests using
-p 50922:10022which I believe means that port50922will map to port10022on OSX, however it seems that ssh is trying to connect to port10022but on the host?@AceHack commented on GitHub (Oct 7, 2021):
Very similar here I get
qemu-system-x86_64: -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2: Could not open '/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2': No such file or directory@jpmorrison commented on GitHub (Oct 8, 2021):
You need to enable remote login in macOS to use port 10022 and connect to the container ip address.
You should be able use the docker port forward with localhost.
you can connect to the container too
If something got messed up and the container password wasn't set, you can just attach a shell and fix things.
@cyruscook commented on GitHub (Oct 8, 2021):
@jpmorrison Thank You for the advice.
These do not connect (
ssh: connect to host 172.17.0.2/localhost port 10022/50933: Connection refused).This connects but requires a password, I can't find a password for the user "arch" anywhere in the repo?
This does work, but I am not sure how I can fix this? I would really appreciate it if you can give me some steps I can run through from here.
Thanks
@jpmorrison commented on GitHub (Oct 8, 2021):
For ssh to work to the macOS guest you need to finish installing, go into settings and enable remote login.
The arch default password is
alpine. You can change it in the container:@cyruscook commented on GitHub (Oct 8, 2021):
@jpmorrison
Thank You, I am now able to login with
ssh arch@172.17.0.2, however I am not sure what to do from here.I am still unable to boot macOS, docker still does not start because of the original error:
Do you have any ideas?
@MaxPowerReforged commented on GitHub (Oct 8, 2021):
@cyruscook what worked for me was to use
sudo subefore running the docker container, using the Monterey image and the Catalina one.@cyruscook commented on GitHub (Oct 8, 2021):
@MaxPowerReforged sorry, could you clarify? Did you run
sudo suin the host computer or the docker container? I am already running docker withsudo. I also have now attempted running docker withinsudo suon host, but that did not change the result.@MaxPowerReforged commented on GitHub (Oct 8, 2021):
@cyruscook Yes, exactly. I run
sudo suin the host computer. For some reason in my case it produced different results thant running the command with sudo. But you are using a different image than I am so there could be other problems sadly, I am sorry I cannot provide more clarification@cyruscook commented on GitHub (Oct 8, 2021):
Thank You for your help, that's fine!
I was trying to run catalina but I ran into problems with the install process freezing which is why I am trying to use the pre-installed image. Perhaps I should just try again with catalina.
@jpmorrison commented on GitHub (Oct 8, 2021):
If you can ssh or attach the container then it's running.
ps auxshould show qemu running.I had issues with Catalina freezing, but I think it's a qemu bug using X displays. Could look at suggestions in https://github.com/sickcodes/Docker-OSX/issues/191 https://github.com/sickcodes/Docker-OSX/issues/218
Eventually I got Catalina installed with SSH/VNC enabled and I could confirm macOS was running. I gave up on X and used the spice config. Also virt-viewer/remote-viewer in Ubuntu is too old and doesn't work - mouse won't move. Installed version 10 for Windows and remote viewer works fine https://virt-manager.org/download/sources/virt-viewer/virt-viewer-10.0.tar.xz