This is not the method you should use to update SSH on your Azure Ubuntu VM. The correct method would be to run sudo ``apt update && sudo apt upgrade
. You will need to restore the VM from backup or attach the OS disk to a recovery VM and reverse the configuration in chroot environment. It will probably be helpful to have a VM with the same OS so you can copy the configuration from it. In the future, please follow the patch instructions supplied from Ubuntu or Azure and avoid installing packages like openssh from source unless required. If you are doing vulnerablity patching you can check here for instructions.
If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.
If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.
Thank you for helping to improve Microsoft Q&A!