unable to login to Monterey using SSH #494

Closed
opened 2025-12-29 01:19:58 +01:00 by adam · 4 comments
Owner

Originally created by @XoneTan on GitHub (Apr 25, 2023).

i have already turn on remote sharing in my monterey like so:
image

but i still can't connect to my monterey, using my monterey password, i also tested 'alpine', my apple account password, and my host password, and try the same think in my visual studio code
image

is there any step there i'm missing to anable ssh, or is it only happen in monterey? (i have not try it in any other version)

edit:

my host os is gnome-Manjaro

this is how i run my docker
docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v "${PWD}/mac_hdd_ng.img:/image" \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist \ sickcodes/docker-osx:naked

Originally created by @XoneTan on GitHub (Apr 25, 2023). i have already turn on remote sharing in my monterey like so: ![image](https://user-images.githubusercontent.com/80412385/234200899-e43db43b-243c-42b5-be71-08fa6fdeb218.png) but i still can't connect to my monterey, using my monterey password, i also tested 'alpine', my apple account password, and my host password, and try the same think in my visual studio code ![image](https://user-images.githubusercontent.com/80412385/234201521-7c603bf8-234a-42bc-a7d9-2055b6eeec90.png) is there any step there i'm missing to anable ssh, or is it only happen in monterey? (i have not try it in any other version) edit: my host os is gnome-Manjaro this is how i run my docker `docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v "${PWD}/mac_hdd_ng.img:/image" \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist \ sickcodes/docker-osx:naked`
adam closed this issue 2025-12-29 01:19:59 +01:00
Author
Owner

@NandoLopes commented on GitHub (Apr 27, 2023):

I'm also having the same problem, but with Catalina.
Now I'm trying to run the Venture image to see if I get anything different, since on the Catalina I was stuck on the SSH loop (on Docker's console)

Still searching for some issue related to this, but couldn't find anything by now.

@NandoLopes commented on GitHub (Apr 27, 2023): I'm also having the same problem, but with Catalina. Now I'm trying to run the Venture image to see if I get anything different, since on the Catalina I was stuck on the SSH loop (on Docker's console) Still searching for some issue related to this, but couldn't find anything by now.
Author
Owner

@PTAHume commented on GitHub (May 5, 2023):

try using the ip address for the wsl and your machine name ( you can get this from network settings) example:

ssh -p 50922 mymachinename@172.31.114.144

failing that recreate the mac image but use port 22 as that is the default for ssh and then try:

ssh -p 22 mymachinename@172.31.114.144
or
ssh -p 22 user@localhost

@PTAHume commented on GitHub (May 5, 2023): try using the ip address for the wsl and your machine name ( you can get this from network settings) example: ssh -p 50922 mymachinename@172.31.114.144 failing that recreate the mac image but use port 22 as that is the default for ssh and then try: ssh -p 22 mymachinename@172.31.114.144 or ssh -p 22 user@localhost
Author
Owner

@sickcodes commented on GitHub (May 7, 2023):

your username is wirandywira@, you're trying user@

@sickcodes commented on GitHub (May 7, 2023): your username is `wirandywira@`, you're trying `user@`
Author
Owner

@XoneTan commented on GitHub (May 17, 2023):

your username is wirandywira@, you're trying user@

thank you this work. i didn't know that you are supposed to use the machine name. because i try `ssh wirandywira@10.0.2.15' just like how i used to do with macOS in VMware, but it was flat out can't connect to the ssh. when i try connecting with user@localhost, it connect and ask for the password, just like how VMware i used to do, so i just thought that is how the qemu tunnel the ssh.

@XoneTan commented on GitHub (May 17, 2023): > your username is `wirandywira@`, you're trying `user@` thank you this work. i didn't know that you are supposed to use the machine name. because i try `ssh wirandywira@10.0.2.15' just like how i used to do with macOS in VMware, but it was flat out can't connect to the ssh. when i try connecting with user@localhost, it connect and ask for the password, just like how VMware i used to do, so i just thought that is how the qemu tunnel the ssh.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#494