UTM: Strange SSH/SSL failing since UTM mac 4.1.x

Describe the issue
With UTM mac 4.0.9, I have an Ubuntu 20.04 VM with the following working:

  • I can ssh into it with an rsa public key authentication
  • I can curl https urls to target an nginx inside the VM

With the same VM and UTM mac 4.1.5, I have the following behavior:

  • I can’t ssh into it with the public key, I must use a password
  • I can’t curl the https urls

Configuration

  • UTM Version: 4.1.5
  • macOS Version: 12.6.2
  • Mac Chip (Intel, M1, …): M1
  • Networking of the VM is shared

Debug log
curl fails with an error error:04FFF085:rsa routines:CRYPTO_internal:first octet invalid ssh doesn’t show any error, just fails accepting the public key and goes on with other auth methods

I’m providing ssh -vvv and curl -vvv logs. I’ll need your guidance for more information and how to help debugging this.

utm-ssh-log.txt utm-curl-log.txt

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (2 by maintainers)

Most upvoted comments

@azric / @GregOriol : I’ve switched the CPU to qemu64-v1 which seems to “fix” the issue. Maybe you’d like to try this as well.

v4.6 updated the QEMU backend which may have addressed this issue. If you still see it, please re-open the issue.

The 4.3.0 beta includes qemu 8 and makes this problem go away for me.

Also found that the following CPUs works fine: Default, Denverton, and all versions of Haswell, Nehalem, IvyBridge, SandyBridge.

And all other CPUs have this error.

M1, UTM Version 4.1.5 (75), shared net.

tried to run curl and wget with https and got these errors: curl: (35) error:0A00007B:SSL routines::bad signature curl: (35) error:0200008A:rsa routines::invalid padding

it’s reproduced in UTM Version 4.1.3 but not in 4.1.2 so guess the bug is appeared in qemu v7.2.0

it seems, qemu already have this issue: https://gitlab.com/qemu-project/qemu/-/issues/1471