SSH to Azure VM with short lived key

SSH to Azure VM with short lived key

avatar

Hi!

I am trying to ssh to VM running on Azure, similar to this post:
https://forum.devolutions.net/topics/39258/can-rdm-use-my-local-ssh-configuration-to-connect-to-a-remote-host

I have pointed ssh private key configuration to id_rsa and certificate to id_rsa.pub-aadcert.pub
But remote server does not support ssh-rsa-cert-v01@openssh.com.
I tried to disable this in host key configuration like that, but still no success:
16229b52-3887-40c5-8ce5-2c0a82c4c824

ssh log:

[18.11.2024 12:06:52] Devolutions Protocols version: 2024.9.27.1 Windows
[18.11.2024 12:06:52] Terminal font: Lucida Console [Lucida Console, fixed=True]
[18.11.2024 12:06:52] Starting SSH, verbose level: 4
[18.11.2024 12:06:52] Setting up connection
[18.11.2024 12:06:52] Connecting to port: 22 (IP any)
[18.11.2024 12:06:52] SSH banner: SSH-2.0-OpenSSH_8.7

[18.11.2024 12:06:52] Sending kex init
[18.11.2024 12:06:52] Received kex init
[18.11.2024 12:06:52] Selected algorithms: curve25519-sha256(strict), ssh-ed25519, chacha20-poly1305@openssh.com, chacha20-poly1305@openssh.com, implicit by cipher, implicit by cipher, none, none
[18.11.2024 12:06:52] Sending Ed25519 kex init
[18.11.2024 12:06:52] Received Ed25519 kex reply
[18.11.2024 12:06:52] Successfully authentified server
[18.11.2024 12:06:52] Sending new keys message
[18.11.2024 12:06:52] Received new keys message
[18.11.2024 12:06:52] Sending userauth service request
[18.11.2024 12:06:52] Received extension info message
[18.11.2024 12:06:52] Server accepts public key types: ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com
[18.11.2024 12:06:52] Received service accepted message
[18.11.2024 12:06:52] Using provided key data
[18.11.2024 12:06:52] Using provided SSH certificate
[18.11.2024 12:06:52] Sending userauth init request
[18.11.2024 12:06:52] Received userauth failure: publickey
[18.11.2024 12:06:52] Starting authentication by key
[18.11.2024 12:06:52] Validating public key: ssh-rsa-cert-v01@openssh.com
[18.11.2024 12:06:52] Received userauth failure: publickey
[18.11.2024 12:06:52] Key not accepted accepted by server
[18.11.2024 12:06:52] No authentication method available
[18.11.2024 12:06:52] The server does not accept interactive authentication
[18.11.2024 12:06:52] The server does not accept password authentication
[18.11.2024 12:06:52] Disconnection in progress
[18.11.2024 12:06:52] Bytes sent: 2732, Bytes received: 1605
[18.11.2024 12:06:52] Packets sent: 6, Packets received: 7
[18.11.2024 12:06:52] Kex completed: 1
[18.11.2024 12:06:52] Disconnecting



Any idea what to change?

Kind regards,
Sebastijan

All Comments (1)

avatar

Hello,

For the forum community, we continue the discussion here https://forum.devolutions.net/topics/43403/ssh-to-azure-vm-with-short-lived-key

Best regards,

Jeff Dagenais