unable to establish ssh connection #406

Closed
opened 2025-12-29 00:26:31 +01:00 by adam · 1 comment
Owner

Originally created by @coffebar on GitHub (Oct 18, 2022).

$ ssh arch@localhost -p 50922
gives error:

kex_exchange_identification: Connection closed by remote host
Connection closed by ::1 port 50922

This is how container was created:

# docker run -i \
# 	--privileged \
#     --device /dev/kvm \
# 	-e GENERATE_UNIQUE=true \
# 	-e RAM=16 \
# 	-e WIDTH=2560 \
#     -e HEIGHT=1440 \
# 	-e NOPICKER=true \
# 	-v "$HOME/macos/mac_hdd_ng.img:/image" \
#     -p 50922:10022 \
#     -v /tmp/.X11-unix:/tmp/.X11-unix \
#     -e "DISPLAY=${DISPLAY:-:0.0}" \
#     sickcodes/docker-osx:naked

what is wrong i do?

Originally created by @coffebar on GitHub (Oct 18, 2022). `$ ssh arch@localhost -p 50922` gives error: kex_exchange_identification: Connection closed by remote host Connection closed by ::1 port 50922 This is how container was created: ``` # docker run -i \ # --privileged \ # --device /dev/kvm \ # -e GENERATE_UNIQUE=true \ # -e RAM=16 \ # -e WIDTH=2560 \ # -e HEIGHT=1440 \ # -e NOPICKER=true \ # -v "$HOME/macos/mac_hdd_ng.img:/image" \ # -p 50922:10022 \ # -v /tmp/.X11-unix:/tmp/.X11-unix \ # -e "DISPLAY=${DISPLAY:-:0.0}" \ # sickcodes/docker-osx:naked ``` what is wrong i do?
adam closed this issue 2025-12-29 00:26:31 +01:00
Author
Owner

@justanhduc commented on GitHub (Nov 1, 2022):

hey @coffebar. You should enable remote login inside the virtual MacOS first.

@justanhduc commented on GitHub (Nov 1, 2022): hey @coffebar. You should enable remote login inside the virtual MacOS first.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#406