Linux vm SSH via RDM and Azure Bastion

Linux vm SSH via RDM and Azure Bastion

avatar

Hi

Getting the following error when i attempt to SSH to a linux vm via the azure bastion service configured within RDM.

"(10057L) A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied."

I can connect to the VM via the azure bastion service directly in the Azure portal, but not via RDM.

I can also SSH to the vm via RDM with a public ip address on it.

Any assistance would be appreciated.

All Comments (3)

avatar

Hello

I'm sorry to hear that's not working quite right. As a first step (based on a hunch), can you try to check the settings of (one of) the SSH sessions in RDM? Under the "Advanced" tab, what do you have configured for "Internet Protocol"? If it's not already, can you try setting it to "IPv4".



Please, let me know if something isn't clear or you have further questions.

Kind regards,

Richard Markievicz

Screenshot 2024-04-23 at 11.32.44.png

avatar

Perfect thanks that worked.

Anyway to make that default for all SSH sessions?

avatar

Hello

Ok, I'm glad that worked!

The difficulty is that we connect to a TCP tunnel on localhost, which might not be resolvable if IPv6 is enabled. I believe it's actually a deficiency in our SSH implementation, and I think that's a known issue.

I'm afraid it's not possible to override the "Default" value right now, but I'll file that as an enhancement request.

In the meantime you have a couple of options:

  • If you're not using IPv6 you could simply disable it on your network adapter
  • You can batch edit the entries. The easiest way would be to use advanced search to find the entries you want - you can filter by e.g. connection type. From the search results, you can select the entries and choose Edit > Batch Edit > Edit Entries (Session Type Settings).




Please, let me know if something isn't clear or you have further questions.

Kind regards,

Richard Markievicz

Screenshot 2024-04-24 at 09.58.40.png