alephsecurity / xnu-qemu-arm64-tools

167 stars 47 forks source link

SSH connection doesn't work properly #19

Open cutesmilee opened 3 years ago

cutesmilee commented 3 years ago

after signing all the things, and also generated an ssh key, and executing "/path/to/dropbear -r /var/dropbear_key" (the key i generated), if i try to connect to ssh with "ssh root@localhost -p 2222" it gives me: "Connection closed by 127.0.0.1 port 2222", idk a lot about networking, i'd like to know why could this happen, and eventually how to fix it. thanks in advance!

sickcodes commented 3 years ago

Are you building on Linux or Mac?

cutesmilee commented 3 years ago

i only saw your reply now, anyway i'm on macOS Big Sur 11.2.1

sickcodes commented 3 years ago

Yeah this is the Linux version, you can follow this repo: https://github.com/alephsecurity/xnu-qemu-arm64-tools

Or specifically, build the TCP Tunnel on Mac and then replace it inside the disk image (mount it as per the losetup notes in readme).

cutesmilee commented 3 years ago

still the same problem, seems like the tunnel works, and also dropbear, since i don't receive any error, but when i try to connect using ssh it closes the connection