Access Linux Admin URL using SSH via Azure Bastion Host

David Chapman 1 Reputation point
2021-09-27T17:42:58.727+00:00

I'm using a Bastion host to secure access to some RHEL servers as I don't want any public endpoints. Some of the applications running on those servers host specific URLs for administrative purposes (eg admin web pages for configuration)

I can SSH via the Bastion host to get console access but how can I access the application web portal running on that RHEL server from my local PC? There doesn't seem to be any configuration that I can see to change on either Basic or Standard (Preview) Bastion hosts ?

Azure Bastion
Azure Bastion
An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.
266 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 26,541 Reputation points Microsoft Employee
    2021-09-29T20:09:26.39+00:00

    Hello @David Chapman , apologies for the delayed response here. Just to confirm If I have understood the question correctly, I see that you have web server hosted on a RHEL server VM on Azure (with only private IP address) and you want to access it via your local machine. If my understanding is correct and as you mentioned correctly this is not possible using Azure bastion but there are multiple ways to achieve this without assigning a public IP to the VM's itself.

    1. You can use Azure VPN Gateway to access the VM. Azure P2S VPN supports TLS based protocols such as OpenVPN Protocol, Secure Socket Tunneling Protocol (SSTP). You can go through this documentation for additional details on implementation and architecture.
    2. You can also use Azure Application Gateway as an entry point where you can add the RHEL server VMs to your backend pool and secure the access using SSL. You can go through this feature list for AG which might help you decide. Azure Load balance can be another alternative to in this scenario you can explore.

    If it helps you can also go though this documentation as one stop to understand the various networking features offered by Azure. Please let me know if there are any additional concerns or questions I will be glad to continue with our discussion. Thank you!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.